diff options
author | Nipun Garg | 2019-06-07 19:44:38 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:44 +0200 |
commit | f489a466f73d563ca5c48e1e7a329950208bf596 (patch) | |
tree | a2a76ad8024b79bf5911aaa65eced7fcba099bf7 /engines | |
parent | 3c562f7f1be4ef99413b39a999fcfaa97cb53d29 (diff) | |
download | scummvm-rg350-f489a466f73d563ca5c48e1e7a329950208bf596.tar.gz scummvm-rg350-f489a466f73d563ca5c48e1e7a329950208bf596.tar.bz2 scummvm-rg350-f489a466f73d563ca5c48e1e7a329950208bf596.zip |
HDB: Add _drawMan to hdb.cpp
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 6 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 494d1166bd..430fd8d82c 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -43,6 +43,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _systemInit = false; g_hdb = this; _fileMan = new FileMan; + _drawMan = new DrawMan; _lua = new LuaScript; _map = new Map; //mapLoader = new MapLoader; @@ -54,6 +55,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst HDBGame::~HDBGame() { delete _console; delete _fileMan; + delete _drawMan; delete _lua; delete _map; //delete mapLoader; @@ -71,6 +73,10 @@ bool HDBGame::init() { error("FileMan::openMPC: Cannot find the hyperspace.mpc data file."); return false; } + if (!_drawMan->init()) { + error("DrawMan::init: Couldn't initialize DrawMan"); + return false; + } if (!_lua->init()) { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); return false; diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index b31d9d7064..8d9aca9554 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -83,6 +83,7 @@ public: */ FileMan *_fileMan; + DrawMan *_drawMan; LuaScript *_lua; Map *_map; |