From efc280892628032470911a8bb6df1d41cd9f1de8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 7 Nov 2010 21:21:55 +0000 Subject: TOON: Fix debug console by implementing getDebugger. svn-id: r54128 --- engines/toon/toon.cpp | 10 +++++----- engines/toon/toon.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'engines') 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(); -- cgit v1.2.3