diff options
Diffstat (limited to 'engines/kyra/kyra.cpp')
-rw-r--r-- | engines/kyra/kyra.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 05d8b79a4e..e35e91731d 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -35,6 +35,7 @@ #include "kyra/text.h" #include "kyra/timer.h" #include "kyra/script.h" +#include "kyra/debugger.h" namespace Kyra { @@ -46,6 +47,7 @@ KyraEngine::KyraEngine(OSystem *system, const GameFlags &flags) _staticres = 0; _timer = 0; _emc = 0; + _debugger = 0; _gameSpeed = 60; _tickLength = (uint8)(1000.0 / _gameSpeed); @@ -78,6 +80,10 @@ KyraEngine::KyraEngine(OSystem *system, const GameFlags &flags) system->getEventManager()->registerRandomSource(_rnd, "kyra"); } +::GUI::Debugger *KyraEngine::getDebugger() { + return _debugger; +} + int KyraEngine::init() { registerDefaultSettings(); @@ -201,6 +207,7 @@ KyraEngine::~KyraEngine() { delete _text; delete _timer; delete _emc; + delete _debugger; } void KyraEngine::quitGame() { |