aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-24 18:17:36 +0000
committerMartin Kiewitz2010-06-24 18:17:36 +0000
commit346c3a3230cf19a3fe9b0306634864f8dfa60faa (patch)
treea939cbee8184c925dc5f2779d1bd8b2bb24dc141 /engines
parent7edbcc26f75e9953d3ed8225e351d398cf9099fc (diff)
downloadscummvm-rg350-346c3a3230cf19a3fe9b0306634864f8dfa60faa.tar.gz
scummvm-rg350-346c3a3230cf19a3fe9b0306634864f8dfa60faa.tar.bz2
scummvm-rg350-346c3a3230cf19a3fe9b0306634864f8dfa60faa.zip
SCI: added uninitialized workaround for sq4cd
svn-id: r50226
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/vm.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index 0b4482e16f..4c039d72a0 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -191,12 +191,13 @@ struct UninitializedReadWorkaround {
int index;
uint16 newValue;
} static const uninitializedReadWorkarounds[] = {
- { "laurabow2", 24, "gcWin", "open", 5, 0xf }, // is used as priority for game menu
- { "freddypharkas", 24, "gcWin", "open", 5, 0xf }, // is used as priority for game menu
- { "freddypharkas", 31, "quitWin", "open", 5, 0xf }, // is used as priority for game menu
- { "lsl1sci", 720, "rm720", "init", 0, 0 }, // age check room
- { "islandbrain", 140, "piece", "init", 3, 1 }, // some initialization variable. bnt is done on it, and it should be non-0
- { NULL, -1, NULL, NULL, 0, 0 }
+ { "laurabow2", 24, "gcWin", "open", 5, 0xf }, // is used as priority for game menu
+ { "freddypharkas", 24, "gcWin", "open", 5, 0xf }, // is used as priority for game menu
+ { "freddypharkas", 31, "quitWin", "open", 5, 0xf }, // is used as priority for game menu
+ { "lsl1sci", 720, "rm720", "init", 0, 0 }, // age check room
+ { "islandbrain", 140, "piece", "init", 3, 1 }, // some initialization variable. bnt is done on it, and it should be non-0
+ { "sq4", 928, "Narrator", "startText", 1000, 1 }, // sq4cd: method returns this to the caller
+ { NULL, -1, NULL, NULL, 0, 0 }
};
static reg_t validate_read_var(reg_t *r, reg_t *stack_base, int type, int max, int index, int line, reg_t default_value) {