From 4f813d2b9929bf75d64727596b759c6b5473d592 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 15 Mar 2016 11:11:29 +0100 Subject: WAGE: Plug the debugger in --- engines/wage/wage.cpp | 4 +++- engines/wage/wage.h | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index b708cff134..3e3ddaa5a5 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -102,12 +102,14 @@ WageEngine::~WageEngine() { } Common::Error WageEngine::run() { + debug("WageEngine::init"); + initGraphics(512, 342, true); // Create debugger console. It requires GFX to be initialized _console = new Console(this); - debug("WageEngine::init"); + _debugger = new Debugger(this); // Your main event loop should be (invoked from) here. _resManager = new Common::MacResManager(); diff --git a/engines/wage/wage.h b/engines/wage/wage.h index 6905fdc530..8ca306aea3 100644 --- a/engines/wage/wage.h +++ b/engines/wage/wage.h @@ -50,12 +50,13 @@ #include "engines/engine.h" #include "common/debug.h" -#include "gui/debugger.h" #include "common/endian.h" #include "common/rect.h" #include "common/macresman.h" #include "common/random.h" +#include "wage/debugger.h" + struct ADGameDescription; namespace Wage { @@ -181,6 +182,8 @@ public: public: Common::RandomSource *_rnd; + Debugger *_debugger; + Gui *_gui; World *_world; @@ -212,6 +215,8 @@ public: void redrawScene(); void saveGame(); + virtual GUI::Debugger *getDebugger() { return _debugger; } + private: Console *_console; -- cgit v1.2.3