mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 07:14:59 +00:00
TOON: Refactor to use Engine debugger
This commit is contained in:
parent
5a18e495e0
commit
ed71bef83b
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user