aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/wage.cpp4
-rw-r--r--engines/wage/wage.h7
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;