diff options
-rw-r--r-- | engines/hdb/hdb.cpp | 3 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index cc545208b2..df8574e8e1 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -40,6 +40,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _console = nullptr; _systemInit = false; fileMan = new FileMan; + lua = new LuaScript; DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test"); DebugMan.addDebugChannel(kDebugExample2, "Example2", "This is also an example"); @@ -47,6 +48,8 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst HDBGame::~HDBGame() { delete _console; + delete fileMan; + delete lua; DebugMan.clearAllDebugChannels(); } diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index cbf8ab9eb9..b28de32005 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -35,9 +35,9 @@ #include "engines/util.h" #include "console.h" -#include "game.h" -#include "file-manager.h" -#include "draw-manager.h" +#include "hdb/file-manager.h" +#include "hdb/draw-manager.h" +#include "hdb/lua-script.h" #define MAX_SNDCACHE_MEM 0x400000 // 4Mb of sounds in memory #define MAX_TILES_CACHED 3500 // Max no of tiles in memory at once @@ -76,6 +76,7 @@ public: */ FileMan *fileMan; + LuaScript *lua; // Game related members; |