From c6070c0d99215d2e0207feeffd8fdb9013af6bed Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Sun, 5 Jun 2016 20:45:14 +0200 Subject: MACVENTURE: Add empty engine --- engines/macventure/macventure.cpp | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'engines/macventure/macventure.cpp') diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index 06325f5eba..a031513f3d 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -20,9 +20,13 @@ * */ +#include "common/scummsys.h" + +#include "common/debug-channels.h" +#include "common/debug.h" #include "common/error.h" -#include "engines/engine.h" +#include "engines/util.h" #include "macventure/macventure.h" @@ -30,13 +34,42 @@ namespace MacVenture { MacVentureEngine::MacVentureEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst) { _gameDescription = gameDesc; + _rnd = new Common::RandomSource("macventure"); + + _debugger= NULL; + + debug("MacVenture::MacVentureEngine()"); } MacVentureEngine::~MacVentureEngine() { + debug("MacVenture::~MacVentureEngine()"); + + DebugMan.clearAllDebugChannels(); + delete _rnd; + delete _debugger; } Common::Error MacVentureEngine::run() { - return Common::Error(); + debug("MacVenture::MacVentureEngine::init()"); + + initGraphics(kScreenWidth, kScreenHeight, true); + + //_screen.create(kScreenWidth, kScreenHeight, Graphics::PixelFormat::createFormatCLUT8()); + + //_wm = new Graphics::MacWindowManager(); + //_wm->setScreen(&_screen); + + // Create debugger console. It requires GFX to be initialized + _debugger = new Console(this); + + // Additional setup. + debug("MacVentureEngine::init"); + + // Your main even loop should be (invoked from) here. + debug("MacVentureEngine::go: Hello, World!"); + + + return Common::kNoError; } } // End of namespace MacVenture -- cgit v1.2.3