diff options
author | Colin Snover | 2016-09-30 19:05:14 -0500 |
---|---|---|
committer | Colin Snover | 2016-09-30 19:05:14 -0500 |
commit | 60be24d973e2a86493fd636fb152ffb31527275f (patch) | |
tree | 8402747497428cb006104138d9562cc04287ae72 | |
parent | f0425d4e94f5e54f9c502a388732fa6e77401814 (diff) | |
download | scummvm-rg350-60be24d973e2a86493fd636fb152ffb31527275f.tar.gz scummvm-rg350-60be24d973e2a86493fd636fb152ffb31527275f.tar.bz2 scummvm-rg350-60be24d973e2a86493fd636fb152ffb31527275f.zip |
SCI: Bump save game number to fix save game compatibility
Version 38 save games were added to the 1.9 release branch with
only changes to SCI32 cursor support; shortly thereafter, changes
to the general (SCI16+SCI32) save game metadata were committed to
master -- without bumping the save game version number. This
prevented SCI16 save games from loading correctly in 1.10pre, since
the engine expected that version 38 games would have this extra
metadata, but they don't.
-rw-r--r-- | engines/sci/engine/savegame.cpp | 2 | ||||
-rw-r--r-- | engines/sci/engine/savegame.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index a238d76279..20889f230b 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -333,7 +333,7 @@ static void sync_SavegameMetadata(Common::Serializer &s, SavegameMetadata &obj) // Some games require additional metadata to display their restore screens // correctly - if (s.getVersion() >= 38) { + if (s.getVersion() >= 39) { if (s.isSaving()) { const reg_t *globals = g_sci->getEngineState()->variables[VAR_GLOBAL]; if (g_sci->getGameId() == GID_SHIVERS) { diff --git a/engines/sci/engine/savegame.h b/engines/sci/engine/savegame.h index 8c54f3b7ce..873394aebb 100644 --- a/engines/sci/engine/savegame.h +++ b/engines/sci/engine/savegame.h @@ -37,7 +37,8 @@ struct EngineState; * * Version - new/changed feature * ============================= - * 38 - SCI32 cursor, accurate SCI32 arrays/strings, score metadata, avatar metadata + * 39 - Accurate SCI32 arrays/strings, score metadata, avatar metadata + * 38 - SCI32 cursor * 37 - Segment entry data changed to pointers * 36 - SCI32 bitmap segment * 35 - SCI32 remap @@ -63,7 +64,7 @@ struct EngineState; */ enum { - CURRENT_SAVEGAME_VERSION = 38, + CURRENT_SAVEGAME_VERSION = 39, MINIMUM_SAVEGAME_VERSION = 14 }; |