Add a workaround for two 'spare' variables that can exist in some save files.
svn-id: r48069
This commit is contained in:
parent
55a9787234
commit
b3ab83d8c1
1 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,12 @@ bool RivenSaveLoad::loadGame(Common::String filename) {
|
||||||
c = (char)names->readByte();
|
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);
|
uint32 *var = _vm->matchVarToString(name);
|
||||||
|
|
||||||
*var = rawVariables[i];
|
*var = rawVariables[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue