TOON: Refactor to use Engine debugger

This commit is contained in:
Paul Gilbert 2020-02-09 08:49:58 -08:00 committed by Filippos Karapetis
parent 5a18e495e0
commit ed71bef83b
2 changed files with 1 additions and 10 deletions

View File

@ -249,11 +249,6 @@ void ToonEngine::parseInput() {
dialog.runModal();
}
}
if (event.kbd.keycode == Common::KEYCODE_d) {
_console->attach();
_console->onFrame();
}
}
break;
default:
@ -1215,7 +1210,7 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription)
_saveBufferStream = NULL;
_pathFinding = NULL;
_console = new ToonConsole(this);
setDebugger(new ToonConsole(this));
_cursorAnimation = NULL;
_cursorAnimationInstance = NULL;
@ -1378,7 +1373,6 @@ ToonEngine::~ToonEngine() {
unloadToonDat();
DebugMan.clearAllDebugChannels();
delete _console;
}
void ToonEngine::flushPalette(bool deferFlushToNextRender) {

View File

@ -110,7 +110,6 @@ public:
char **_specialInfoLine;
Common::Error run() override;
GUI::Debugger *getDebugger() override { return _console; }
bool showMainmenu(bool &loadedGame);
bool showOptions();
void init();
@ -437,8 +436,6 @@ protected:
bool _showConversationText;
bool _useAlternativeFont;
bool _needPaletteFlush;
private:
ToonConsole *_console;
};
} // End of namespace Toon