diff options
author | Paul Gilbert | 2014-05-20 08:37:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-20 08:37:42 -0400 |
commit | 8a08a19097b4338c73dc9456622b75233b9b0194 (patch) | |
tree | ecc7b90f90de253d33bba1a42fcfd7a766139cf6 /engines/draci/saveload.cpp | |
parent | 555b4dfd6e076dd5ef5cfc982fb5dbf3e211d198 (diff) | |
parent | c1890cc739d94c4310ec8933b8fca3f43b8df294 (diff) | |
download | scummvm-rg350-8a08a19097b4338c73dc9456622b75233b9b0194.tar.gz scummvm-rg350-8a08a19097b4338c73dc9456622b75233b9b0194.tar.bz2 scummvm-rg350-8a08a19097b4338c73dc9456622b75233b9b0194.zip |
Merge branch 'master' into mads
Diffstat (limited to 'engines/draci/saveload.cpp')
-rw-r--r-- | engines/draci/saveload.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/draci/saveload.cpp b/engines/draci/saveload.cpp index 31ac63b791..3e7f8651c1 100644 --- a/engines/draci/saveload.cpp +++ b/engines/draci/saveload.cpp @@ -45,7 +45,8 @@ bool readSavegameHeader(Common::InSaveFile *in, DraciSavegameHeader &header) { return false; header.version = in->readByte(); - if (header.version != DRACI_SAVEGAME_VERSION) + // Version 1 is compatible with Version 2 + if (header.version > DRACI_SAVEGAME_VERSION) return false; // Read in the string @@ -106,7 +107,7 @@ Common::Error saveSavegameData(int saveGameIdx, const Common::String &saveName, } else { // Create the remainder of the savegame Common::Serializer s(NULL, f); - vm._game->DoSync(s); + vm._game->DoSync(s, header.version); f->finalize(); delete f; @@ -140,7 +141,7 @@ Common::Error loadSavegameData(int saveGameIdx, DraciEngine *vm) { // Synchronise the remaining data of the savegame Common::Serializer s(f, NULL); - vm->_game->DoSync(s); + vm->_game->DoSync(s, header.version); delete f; // Post-processing |