diff options
author | Nipun Garg | 2019-06-02 19:06:58 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:42 +0200 |
commit | 4800001cdccdc3408a073655105fde6001cf5d63 (patch) | |
tree | f9a9afd1b0d43995b54c3c5e63715bebac35a1a9 | |
parent | 0ad5f7e1803c8615b2b6ac9425b710fc5b7c8304 (diff) | |
download | scummvm-rg350-4800001cdccdc3408a073655105fde6001cf5d63.tar.gz scummvm-rg350-4800001cdccdc3408a073655105fde6001cf5d63.tar.bz2 scummvm-rg350-4800001cdccdc3408a073655105fde6001cf5d63.zip |
HDB: Add Lua subsystem
Added the LuaScript *lua pointer. Also called the
destructors for fileMan and lua
-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; |