aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/saveload.cpp
diff options
context:
space:
mode:
authorlukaslw2014-03-08 00:31:27 +0100
committerlukaslw2014-03-08 16:21:57 +0100
commit579c343d1361801c936eedae50d956018a7d83f4 (patch)
tree00617fedf76b5a2628bd2fad35124b8ce8ef3806 /engines/draci/saveload.cpp
parentda157fbccc7e094f16bc78e2ddadfc2ea29676f4 (diff)
downloadscummvm-rg350-579c343d1361801c936eedae50d956018a7d83f4.tar.gz
scummvm-rg350-579c343d1361801c936eedae50d956018a7d83f4.tar.bz2
scummvm-rg350-579c343d1361801c936eedae50d956018a7d83f4.zip
DRACI: Saving improvements (item in hand and hero position).
Diffstat (limited to 'engines/draci/saveload.cpp')
-rw-r--r--engines/draci/saveload.cpp7
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