diff options
Diffstat (limited to 'engines/draci/draci.cpp')
-rw-r--r-- | engines/draci/draci.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index 7a7d7b8372..d0eb511cbd 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -94,6 +94,8 @@ DraciEngine::DraciEngine(OSystem *syst, const ADGameDescription *gameDesc) DebugMan.addDebugChannel(kDraciSoundDebugLevel, "sound", "Sound debug info"); DebugMan.addDebugChannel(kDraciWalkingDebugLevel, "walking", "Walking debug info"); + _console = new DraciConsole(this); + // Don't forget to register your random source g_eventRec.registerRandomSource(_rnd, "draci"); } @@ -346,6 +348,12 @@ void DraciEngine::handleEvents() { _game->inventorySwitch(event.kbd.keycode); } break; + case Common::KEYCODE_d: + if (event.kbd.hasFlags(Common::KBD_CTRL)) { + this->getDebugger()->attach(); + this->getDebugger()->onFrame(); + } + break; default: break; } @@ -399,6 +407,8 @@ DraciEngine::~DraciEngine() { // Remove all of our debug levels here DebugMan.clearAllDebugChannels(); + + delete _console; } Common::Error DraciEngine::run() { |