From 60be24d973e2a86493fd636fb152ffb31527275f Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 30 Sep 2016 19:05:14 -0500 Subject: 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. --- engines/sci/engine/savegame.cpp | 2 +- engines/sci/engine/savegame.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine') 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 }; -- cgit v1.2.3