diff options
author | Lars Skovlund | 2011-01-21 19:56:23 +0000 |
---|---|---|
committer | Lars Skovlund | 2011-01-21 19:56:23 +0000 |
commit | 4818b2ae080b29fbf896a03d555867ba1311e5e8 (patch) | |
tree | d3a1dc5ce6e19764573e00fd8e65f54e5a0b8866 | |
parent | cd62c3ae42b9f85540f8b112f580413a631aceb6 (diff) | |
download | scummvm-rg350-4818b2ae080b29fbf896a03d555867ba1311e5e8.tar.gz scummvm-rg350-4818b2ae080b29fbf896a03d555867ba1311e5e8.tar.bz2 scummvm-rg350-4818b2ae080b29fbf896a03d555867ba1311e5e8.zip |
SCI: Add comment for GK1 workaround.
svn-id: r55391
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 6b5aca4503..0afb6a0a45 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -176,6 +176,11 @@ reg_t kFlushResources(EngineState *s, int argc, reg_t *argv) { } reg_t kSetDebug(EngineState *s, int argc, reg_t *argv) { + // WORKAROUND: For some reason, GK1 calls this unconditionally when + // watching the intro. Older (SCI0) games call it on room change if + // a flag is set, in which case the debugger SHOULD get activated. + // Therefore, don't break into the debugger in GK1, but do so elsewhere. + if (g_sci->getGameId() != GID_GK1) { debug("Debug mode activated"); |