From 4818b2ae080b29fbf896a03d555867ba1311e5e8 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Fri, 21 Jan 2011 19:56:23 +0000 Subject: SCI: Add comment for GK1 workaround. svn-id: r55391 --- engines/sci/engine/kmisc.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3