diff options
author | Matthew Hoops | 2010-02-16 01:48:19 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-16 01:48:19 +0000 |
commit | b3ab83d8c125f8a7d8bafce04a3db11c3cdddec1 (patch) | |
tree | 78bbae6dd884935c66ad2867a0af704572b01d5e /engines | |
parent | 55a9787234d9968dc4d377efc1a82543585124f7 (diff) | |
download | scummvm-rg350-b3ab83d8c125f8a7d8bafce04a3db11c3cdddec1.tar.gz scummvm-rg350-b3ab83d8c125f8a7d8bafce04a3db11c3cdddec1.tar.bz2 scummvm-rg350-b3ab83d8c125f8a7d8bafce04a3db11c3cdddec1.zip |
Add a workaround for two 'spare' variables that can exist in some save files.
svn-id: r48069
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/riven_saveload.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/riven_saveload.cpp b/engines/mohawk/riven_saveload.cpp index 51d92a0922..a4e2363be2 100644 --- a/engines/mohawk/riven_saveload.cpp +++ b/engines/mohawk/riven_saveload.cpp @@ -151,6 +151,12 @@ bool RivenSaveLoad::loadGame(Common::String filename) { c = (char)names->readByte(); } + // WORKAROUND: Some versions have two extra variables. However, the saves are + // still compatible with other saves of the same version. Are these used in the + // original interpreter anywhere? (They come from DVD v1.1) + if (name == "dropLeftStart" || name == "dropRightStart") + continue; + uint32 *var = _vm->matchVarToString(name); *var = rawVariables[i]; |