aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 02:37:14 +0530
committerEugene Sandulenko2019-09-03 17:16:56 +0200
commit28ab1f95491b1abec0af3b8d74c117fb6b2dee84 (patch)
tree73bbc8585f68c2fc00d15d3e567ffe4884be5368 /engines/hdb/hdb.cpp
parent3ffbcec87e186fa1b81034273ea8d6beef8134ab (diff)
downloadscummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.tar.gz
scummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.tar.bz2
scummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.zip
HDB: Add and init the _window subsystem
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 6e339ebf12..e92aab3c92 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -47,6 +47,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst
_lua = new LuaScript;
_map = new Map;
_ai = new AI;
+ _window = new Window;
_rnd = new Common::RandomSource("hdb");
DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test");
@@ -60,6 +61,7 @@ HDBGame::~HDBGame() {
delete _lua;
delete _map;
delete _ai;
+ delete _window;
delete _rnd;
DebugMan.clearAllDebugChannels();
@@ -84,6 +86,9 @@ bool HDBGame::init() {
if (!_lua->init()) {
error("LuaScript::init: Couldn't load the GLOBAL_LUA code.");
}
+ if (!_window->init()) {
+ error("Window::init: Couldn't initialize Window");
+ }
// REMOVE: Putting this here since Menu hasn't been implemented yet.
// Defaults the game into Action Mode