diff options
author | Strangerke | 2017-01-24 23:52:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:27 +0100 |
commit | a8a142cfe4521bae210cc4a7c7b4891030d1de39 (patch) | |
tree | 73e41c576aacbb56a1f5e1a9709fd606664f9a93 /engines/cryo/cryo.cpp | |
parent | 0e34cec17a6fbd8944c485929b6746e18ce56913 (diff) | |
download | scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.gz scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.bz2 scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.zip |
CRYO: Introduce debugger, remove console initialisation
Diffstat (limited to 'engines/cryo/cryo.cpp')
-rw-r--r-- | engines/cryo/cryo.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/cryo/cryo.cpp b/engines/cryo/cryo.cpp index df16f8af1f..be7c5d779e 100644 --- a/engines/cryo/cryo.cpp +++ b/engines/cryo/cryo.cpp @@ -40,7 +40,7 @@ namespace Cryo { CryoEngine *g_ed = nullptr; -CryoEngine::CryoEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _console(nullptr) { +CryoEngine::CryoEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) { // Put your engine in a sane state, but do nothing big yet; // in particular, do not load data from files; rather, if you // need to do such things, do them from run(). @@ -58,11 +58,13 @@ CryoEngine::CryoEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engin // Don't forget to register your random source _rnd = new Common::RandomSource("cryo"); + _debugger = nullptr; + _game = nullptr; _video = nullptr; _screenView = nullptr; - debug("CryoEngine::CryoEngine"); + _showHotspots = false; g_ed = this; } @@ -75,6 +77,7 @@ CryoEngine::~CryoEngine() { delete _game; delete _video; delete _screenView; + delete _debugger; // Remove all of our debug levels here DebugMan.clearAllDebugChannels(); @@ -84,6 +87,7 @@ Common::Error CryoEngine::run() { _game = new EdenGame(this); _video = new HnmPlayer(this); _screenView = new View(this, 320, 200); + _debugger = new Debugger(this); ///// CLTimer _timerTicks = 0; // incremented in realtime @@ -92,9 +96,6 @@ Common::Error CryoEngine::run() { initGraphics(320, 200, false); _screen.create(320, 200, Graphics::PixelFormat::createFormatCLUT8()); - // Create debugger console. It requires GFX to be initialized - _console = new Console(this); - // Additional setup. debug("CryoEngine::init"); |