aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/macventure.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-06-05 20:45:14 +0200
committerBorja Lorente2016-08-14 18:07:22 +0200
commitc6070c0d99215d2e0207feeffd8fdb9013af6bed (patch)
treea5556e7829162accf21d3d7fb820580a7f159045 /engines/macventure/macventure.cpp
parent6815b0546708fd2154e799f89d65c8724da7250b (diff)
downloadscummvm-rg350-c6070c0d99215d2e0207feeffd8fdb9013af6bed.tar.gz
scummvm-rg350-c6070c0d99215d2e0207feeffd8fdb9013af6bed.tar.bz2
scummvm-rg350-c6070c0d99215d2e0207feeffd8fdb9013af6bed.zip
MACVENTURE: Add empty engine
Diffstat (limited to 'engines/macventure/macventure.cpp')
-rw-r--r--engines/macventure/macventure.cpp37
1 files changed, 35 insertions, 2 deletions
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