DREAMWEB: 'oldtonames' and 'namestoold' ported to C++

This commit is contained in:
Bertrand Augereau 2011-11-17 15:08:34 +01:00
parent 3e049c0123
commit a389f1e46e
5 changed files with 16 additions and 29 deletions

View file

@ -352,5 +352,12 @@ void DreamGenContext::savegame() {
}
}
void DreamGenContext::namestoold() {
memcpy(segRef(data.word(kBuffers)).ptr(kZoomspace, 0), cs.ptr(kSavenames, 0), 17*4);
}
void DreamGenContext::oldtonames() {
memcpy(cs.ptr(kSavenames, 0), segRef(data.word(kBuffers)).ptr(kZoomspace, 0), 17*4);
}
} /*namespace dreamgen */