diff options
author | Johannes Schickel | 2010-11-07 21:21:55 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-11-07 21:21:55 +0000 |
commit | efc280892628032470911a8bb6df1d41cd9f1de8 (patch) | |
tree | 9e2cfa896eb098496c614a0be8e0d3678d3ba64b | |
parent | 4acad22d6e28d647c3233c183e3104b9d02a86e5 (diff) | |
download | scummvm-rg350-efc280892628032470911a8bb6df1d41cd9f1de8.tar.gz scummvm-rg350-efc280892628032470911a8bb6df1d41cd9f1de8.tar.bz2 scummvm-rg350-efc280892628032470911a8bb6df1d41cd9f1de8.zip |
TOON: Fix debug console by implementing getDebugger.
svn-id: r54128
-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(); |