aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-15 11:11:29 +0100
committerEugene Sandulenko2016-03-15 11:27:49 +0100
commit4f813d2b9929bf75d64727596b759c6b5473d592 (patch)
treeec0d4a96bc547ef245bed32984b2134ad5e16fc2
parent53806622fc5a0aecdc0c950b73f07e962f082432 (diff)
downloadscummvm-rg350-4f813d2b9929bf75d64727596b759c6b5473d592.tar.gz
scummvm-rg350-4f813d2b9929bf75d64727596b759c6b5473d592.tar.bz2
scummvm-rg350-4f813d2b9929bf75d64727596b759c6b5473d592.zip
WAGE: Plug the debugger in
-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;