HOPKINS: Bumped up savegame version, and added load handling the brief version 3 format

This commit is contained in:
Paul Gilbert 2013-07-31 21:21:29 -04:00
parent 07d8e5643b
commit ac70aa2e5c
2 changed files with 5 additions and 1 deletions

View File

@ -258,6 +258,10 @@ void SaveLoadManager::createThumbnail(Graphics::Surface *s) {
}
void SaveLoadManager::syncSavegameData(Common::Serializer &s, int version) {
// The brief version 3 had the highscores embedded. They're in a separate file now, so skip
if (version == 3 && s.isLoading())
s.skip(100);
s.syncBytes(&_vm->_globals->_saveData->_data[0], 2050);
syncCharacterLocation(s, _vm->_globals->_saveData->_cloneHopkins);
syncCharacterLocation(s, _vm->_globals->_saveData->_realHopkins);

View File

@ -35,7 +35,7 @@ namespace Hopkins {
class HopkinsEngine;
#define HOPKINS_SAVEGAME_VERSION 2
#define HOPKINS_SAVEGAME_VERSION 4
struct hopkinsSavegameHeader {
uint8 _version;