diff options
author | Colin Snover | 2017-02-04 19:33:31 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-22 13:01:38 -0500 |
commit | a2fb53790b85050e2bac1af5e7a3ab626a6dc3db (patch) | |
tree | 49f87133ac436e9a95cb6d073b8fd7aae0a9a729 /engines | |
parent | e504efe4da62b3d2e32ffb895b935080be02aed4 (diff) | |
download | scummvm-rg350-a2fb53790b85050e2bac1af5e7a3ab626a6dc3db.tar.gz scummvm-rg350-a2fb53790b85050e2bac1af5e7a3ab626a6dc3db.tar.bz2 scummvm-rg350-a2fb53790b85050e2bac1af5e7a3ab626a6dc3db.zip |
SCI32: Make version 41 the first supported save game version
Save games created by earlier versions of ScummVM are prone to
having subtle graphics problems or other corruption caused by
incomplete save/load code.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 2 | ||||
-rw-r--r-- | engines/sci/engine/savegame.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index bdf9bb69aa..da4f65b1da 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -1279,7 +1279,7 @@ reg_t kCheckSaveGame32(EngineState *s, int argc, reg_t *argv) { return NULL_REG; } - if (save.version < MINIMUM_SAVEGAME_VERSION || + if (save.version < MINIMUM_SCI32_SAVEGAME_VERSION || save.version > CURRENT_SAVEGAME_VERSION || save.gameVersion != gameVersion) { diff --git a/engines/sci/engine/savegame.h b/engines/sci/engine/savegame.h index 72982469e0..b6a673b1c0 100644 --- a/engines/sci/engine/savegame.h +++ b/engines/sci/engine/savegame.h @@ -37,7 +37,7 @@ struct EngineState; * * Version - new/changed feature * ============================= - * 41 - palette support for newer SCI2.1 games + * 41 - palette support for newer SCI2.1 games; stable SCI2/2.1 save games * 40 - always store palvary variables * 39 - Accurate SCI32 arrays/strings, score metadata, avatar metadata * 38 - SCI32 cursor @@ -68,6 +68,10 @@ struct EngineState; enum { CURRENT_SAVEGAME_VERSION = 41, MINIMUM_SAVEGAME_VERSION = 14 +#ifdef ENABLE_SCI32 + , + MINIMUM_SCI32_SAVEGAME_VERSION = 41 +#endif }; // Savegame metadata |