diff options
-rw-r--r-- | engines/zvision/zvision.cpp | 7 | ||||
-rw-r--r-- | engines/zvision/zvision.h | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 452ed00daf..2009ccde44 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -32,10 +32,13 @@ #include "engines/util.h"
#include "zvision/zvision.h"
+#include "zvision/scriptManager.h"
#include "zvision/zfsArchive.h"
#include "graphics/decoders/tga.h"
+#include "zvision/tests.h"
+
namespace ZVision {
ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
@@ -59,7 +62,7 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc) : Engine // Don't forget to register your random source
_rnd = new Common::RandomSource("zvision");
-
+
debug("ZVision::ZVision");
}
@@ -90,6 +93,8 @@ void ZVision::initialize() { Graphics::PixelFormat format = Graphics::PixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0); // RGB555
initGraphics(640, 480, true, &format);
+ _scriptManager.initialize();
+
// Create debugger console. It requires GFX to be initialized
_console = new Console(this);
}
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index c5ddb8ab4a..b57ce20e25 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -29,6 +29,8 @@ #include "engines/engine.h"
+#include "zvision/scriptManager.h"
+
#include "gui/debugger.h"
namespace ZVision {
@@ -56,6 +58,8 @@ private: // We need random numbers
Common::RandomSource *_rnd;
+ ScriptManager _scriptManager;
+
// To prevent allocation every time we process events
Common::Event _event;
|