diff options
author | Filippos Karapetis | 2010-11-24 11:57:11 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-11-24 11:57:11 +0000 |
commit | 7fc171e3bc84be94162288397af679d437e537b4 (patch) | |
tree | eb4aa3ba332d001c9ee6fe4f4d9cd45d84ad6f52 /engines/sci/console.cpp | |
parent | 332a438ccf0b2def3237f69661e836c7ed444d7a (diff) | |
download | scummvm-rg350-7fc171e3bc84be94162288397af679d437e537b4.tar.gz scummvm-rg350-7fc171e3bc84be94162288397af679d437e537b4.tar.bz2 scummvm-rg350-7fc171e3bc84be94162288397af679d437e537b4.zip |
SCI: Some slight changes to get the "find_callk" console command working in KQ5
- Ignore invalid object in KQ5 script 784
- Script 980 looks to be an unused leftover, as its object contain references to
classes placed in script 988, which is missing
svn-id: r54455
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 409abb6298..7dfafba8ae 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2749,6 +2749,13 @@ bool Console::cmdFindKernelFunctionCall(int argc, const char **argv) { SegManager *segMan = _engine->getEngineState()->_segMan; while (itr != resources->end()) { + if (_engine->getGameId() == GID_KQ5 && itr->getNumber() == 980) { + // Ignore script 980 in KQ5. Seems to be a leftover, as it + // uses a superclass from script 988, which doesn't exist + itr++; + continue; + } + // Load script scriptSegment = segMan->instantiateScript(itr->getNumber()); script = segMan->getScript(scriptSegment); |