diff options
author | Eugene Sandulenko | 2019-07-03 17:31:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:10 +0200 |
commit | 347dd30f784f7739da2a5ea29117851a7665e1ec (patch) | |
tree | 0f0a40167cad516b188357d48e1bfe72c28d9b83 /engines/hdb/hdb.cpp | |
parent | e97d425b8a70d4dac28291cb4262a37981db823a (diff) | |
download | scummvm-rg350-347dd30f784f7739da2a5ea29117851a7665e1ec.tar.gz scummvm-rg350-347dd30f784f7739da2a5ea29117851a7665e1ec.tar.bz2 scummvm-rg350-347dd30f784f7739da2a5ea29117851a7665e1ec.zip |
HDB: Implement loadLua()
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 3fefb2835b..9eaf120813 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -503,14 +503,7 @@ Common::Error HDBGame::run() { tile->load(tileStream); #endif - Common::SeekableReadStream *luaStream = _fileMan->findFirstData("MAP00_LUA", TYPE_BINARY); - int32 luaLength = _fileMan->getLength("MAP00_LUA", TYPE_BINARY); - if (luaStream == NULL) { - debug("The MAP00_LUA MPC entry can't be found."); - return Common::kReadingFailed; - } - - _lua->initScript(luaStream, "MAP00_LUA", luaLength); + _lua->loadLua("MAP00_LUA"); _lua->callFunction("level_loaded", 0); |