diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 9c609c3c3a0..cdecac81a1f 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -68,7 +68,7 @@ HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(sy DebugMan.addDebugChannel(kDebugObject, "Object", "Object debug level"); DebugMan.addDebugChannel(kDebugMusic, "Music", "Music debug level"); - _console = new HugoConsole(this); + setDebugger(new HugoConsole(this)); _rnd = 0; _screen = nullptr; @@ -149,14 +149,9 @@ HugoEngine::~HugoEngine() { delete _text; DebugMan.clearAllDebugChannels(); - delete _console; delete _rnd; } -GUI::Debugger *HugoEngine::getDebugger() { - return _console; -} - Status &HugoEngine::getGameStatus() { return _status; } diff --git a/engines/hugo/hugo.h b/engines/hugo/hugo.h index 886f9ffcec7..45422c92bb4 100644 --- a/engines/hugo/hugo.h +++ b/engines/hugo/hugo.h @@ -239,8 +239,6 @@ public: Maze _maze; // Maze control structure hugoBoot _boot; // Boot info structure - GUI::Debugger *getDebugger() override; - Common::RandomSource *_rnd; const char *_episode; @@ -320,8 +318,6 @@ private: static HugoEngine *s_Engine; - HugoConsole *_console; - GameType _gameType; Common::Platform _platform; bool _packedFl; diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index 7ee0198882c..c853023362e 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -286,10 +286,6 @@ void Parser::keyHandler(Common::Event event) { if (event.kbd.hasFlags(Common::KBD_CTRL)) { switch (nChar) { - case Common::KEYCODE_d: - _vm->getDebugger()->attach(); - _vm->getDebugger()->onFrame(); - break; case Common::KEYCODE_l: _vm->_file->restoreGame(-1); break;