diff options
author | Matthew Hoops | 2011-08-03 00:11:58 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-08-03 00:15:27 -0400 |
commit | c36642651e8df6d3d36d1e2c4e29dc3ea0e278f2 (patch) | |
tree | 860887e0f927e025de9711ec84d97fa851cbcb25 /engines/scumm/he | |
parent | 4faa2d5b42628a212015ccce578c4762f95bad1c (diff) | |
download | scummvm-rg350-c36642651e8df6d3d36d1e2c4e29dc3ea0e278f2.tar.gz scummvm-rg350-c36642651e8df6d3d36d1e2c4e29dc3ea0e278f2.tar.bz2 scummvm-rg350-c36642651e8df6d3d36d1e2c4e29dc3ea0e278f2.zip |
SCUMM: Remove BluesBirthday dependency on the binary
The game scripts detected Yellow or Red variants based on what binary was present. That could potentially cause problems with a Mac dump in case someone dumped into MacBinary format.
Diffstat (limited to 'engines/scumm/he')
-rw-r--r-- | engines/scumm/he/script_v72he.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 5af4035930..0510f77740 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -1831,6 +1831,15 @@ void ScummEngine_v72he::o72_readINI() { push(1); } else if (!strcmp((char *)option, "TextOn")) { push(ConfMan.getBool("subtitles")); + } else if (!strcmp((char *)option, "Disk") && (_game.id == GID_BIRTHDAYRED || _game.id == GID_BIRTHDAYYELLOW)) { + // WORKAROUND: Override the disk detection + // This removes the reliance on having the binary file around (which is + // very bad for the Mac version) just for the scripts to figure out if + // we're running Yellow or Red + if (_game.id == GID_BIRTHDAYRED) + push(4); + else + push(2); } else { push(ConfMan.getInt((char *)option)); } |