aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorTravis Howell2010-10-23 06:27:16 +0000
committerTravis Howell2010-10-23 06:27:16 +0000
commit402fac9ed41cea27d37574aa2db37ce016372106 (patch)
tree7bc697b0c3f6e90e511d524ac939be3ceb207eed /engines/scumm/script_v6.cpp
parentd602e4a785df248140d088fa691fb525d603d76e (diff)
downloadscummvm-rg350-402fac9ed41cea27d37574aa2db37ce016372106.tar.gz
scummvm-rg350-402fac9ed41cea27d37574aa2db37ce016372106.tar.bz2
scummvm-rg350-402fac9ed41cea27d37574aa2db37ce016372106.zip
SCUMM: Add workaround to allow saved games to be shared between Macintosh and Windows versions of Backyard Baseball 2001.
svn-id: r53729
Diffstat (limited to 'engines/scumm/script_v6.cpp')
-rw-r--r--engines/scumm/script_v6.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp
index ede32623aa..0226343df5 100644
--- a/engines/scumm/script_v6.cpp
+++ b/engines/scumm/script_v6.cpp
@@ -536,7 +536,18 @@ void ScummEngine_v6::o6_not() {
}
void ScummEngine_v6::o6_eq() {
- push(pop() == pop());
+ int a = pop();
+ int b = pop();
+
+ // WORKAROUND: Forces the game version string set via script 1 to be used in both Macintosh and Windows versions,
+ // when checking for save game compatibility. Allows saved games to be shared between Macintosh and Windows versions.
+ // The scripts check VAR_PLATFORM (b) against the value (2) of the Macintosh platform (a).
+ if (_game.id == GID_BASEBALL2001 && (vm.slot[_currentScript].number == 291 || vm.slot[_currentScript].number == 292) &&
+ a == 2 && b == 1) {
+ push(1);
+ } else {
+ push(a == b);
+ }
}
void ScummEngine_v6::o6_neq() {