diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/toon.cpp | 10 | ||||
-rw-r--r-- | engines/toon/toon.h | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 0ce993e6de..3738a5fa48 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -239,11 +239,11 @@ void ToonEngine::parseInput() { dialog.runModal(); } } - // FIXME - Triggering Debug Console currently causes a segfault. - //if (event.kbd.keycode == Common::KEYCODE_d) { - // this->getDebugger()->attach(); - // this->getDebugger()->onFrame(); - //} + + if (event.kbd.keycode == Common::KEYCODE_d) { + this->getDebugger()->attach(); + this->getDebugger()->onFrame(); + } } break; // Strangerke - Commented (not used) diff --git a/engines/toon/toon.h b/engines/toon/toon.h index 93cf2f168f..4c1ad21946 100644 --- a/engines/toon/toon.h +++ b/engines/toon/toon.h @@ -102,6 +102,7 @@ public: char **_specialInfoLine; Common::Error run(); + GUI::Debugger *getDebugger() { return _console; } bool showMainmenu(bool &loadedGame); void init(); bool loadToonDat(); |