aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/toon.cpp
diff options
context:
space:
mode:
authorDavid Turner2010-11-07 17:18:59 +0000
committerDavid Turner2010-11-07 17:18:59 +0000
commit279a760c5a833b51de3217f8eadda7cf57596532 (patch)
treeaa1f488f57d9b46c75df158443612be6f52b49db /engines/toon/toon.cpp
parentf9d311d1efed7b459f74d6e2ed2abf9c48ea36ba (diff)
downloadscummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.tar.gz
scummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.tar.bz2
scummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.zip
TOON: Added basic debugging console to engine
Since Toon uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands. However, the hotkey for this is currently disabled as it causes a segfault. Not sure why. svn-id: r54123
Diffstat (limited to 'engines/toon/toon.cpp')
-rw-r--r--engines/toon/toon.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 3f8d0b2b5f..9ccd947977 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -239,6 +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();
+ //}
}
break;
// Strangerke - Commented (not used)
@@ -750,6 +755,8 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription)
DebugMan.addDebugChannel(kDebugTools, "Tools", "Tools debug level");
DebugMan.addDebugChannel(kDebugText, "Text", "Text debug level");
+ _console = new ToonConsole(this);
+
switch (_language) {
case Common::EN_GRB:
case Common::EN_USA:
@@ -776,7 +783,8 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription)
}
ToonEngine::~ToonEngine() {
-
+ DebugMan.clearAllDebugChannels();
+ delete _console;
}
void ToonEngine::flushPalette() {