diff options
author | Filippos Karapetis | 2010-07-27 14:51:08 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-07-27 14:51:08 +0000 |
commit | bc6baef0c0e6d952f5ac2eca2ccb1352cb9444b7 (patch) | |
tree | b23f85f7c34ae678b7327ebb6206be219f5fae30 /engines/sci/engine/workarounds.cpp | |
parent | 5b686b539abe6ff876bb3479636741628fcdf11f (diff) | |
download | scummvm-rg350-bc6baef0c0e6d952f5ac2eca2ccb1352cb9444b7.tar.gz scummvm-rg350-bc6baef0c0e6d952f5ac2eca2ccb1352cb9444b7.tar.bz2 scummvm-rg350-bc6baef0c0e6d952f5ac2eca2ccb1352cb9444b7.zip |
SCI: Fixed bug #3035186 - "ECOQUEST2: Crash When Receiving Ecorder". Also removed the now obsolete kStringCpy workaround table.
svn-id: r51372
Diffstat (limited to 'engines/sci/engine/workarounds.cpp')
-rw-r--r-- | engines/sci/engine/workarounds.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp index 4be4d56b21..794c5c78d6 100644 --- a/engines/sci/engine/workarounds.cpp +++ b/engines/sci/engine/workarounds.cpp @@ -151,6 +151,12 @@ const SciWorkaroundEntry kGetAngle_workarounds[] = { }; // gameID, room,script,lvl, object-name, method-name, call,index, workaround +const SciWorkaroundEntry kFindKey_workarounds[] = { + { GID_ECOQUEST2, 100, 999, 0, "myList", "contains", -1, 0, { WORKAROUND_FAKE, 0 } }, // When Noah Greene gives Adam the Ecorder, and just before the game gives a demonstration, a null reference to a list is passed. + SCI_WORKAROUNDENTRY_TERMINATOR +}; + +// gameID, room,script,lvl, object-name, method-name, call,index, workaround const SciWorkaroundEntry kGraphDrawLine_workarounds[] = { { GID_ISLANDBRAIN, 300, 300, 0, "dudeViewer", "show", -1, 0, { WORKAROUND_STILLCALL, 0 } }, // when looking at the gene explanation chart, gets called with 1 extra parameter { GID_SQ1, 43, 43, 0, "someoneDied", "changeState", -1, 0, { WORKAROUND_STILLCALL, 0 } }, // when ordering beer, gets called with 1 extra parameter @@ -247,13 +253,6 @@ const SciWorkaroundEntry kUnLoad_workarounds[] = { SCI_WORKAROUNDENTRY_TERMINATOR }; -// gameID, room,script,lvl, object-name, method-name, call,index, workaround -const SciWorkaroundEntry kStrCpy_workarounds[] = { - // seems not to be needed, because the signature was wrong - //{ GID_ISLANDBRAIN, 260, 45, 0, "aWord", "addOn", -1, 0, { WORKAROUND_STILLCALL, 0 } }, // Hominy Homonym puzzle - SCI_WORKAROUNDENTRY_TERMINATOR -}; - SciWorkaroundSolution trackOriginAndFindWorkaround(int index, const SciWorkaroundEntry *workaroundList, SciTrackOriginReply *trackOrigin) { EngineState *state = g_sci->getEngineState(); ExecStack *lastCall = state->xs; |