aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-07-25 04:19:36 +0530
committerEugene Sandulenko2019-09-03 17:17:28 +0200
commit2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad (patch)
treedb5cdcb4817121f25f220759f9eba50a4cffaeaf /engines/hdb
parent1a7fc846cf2b62c9a91615b207ba2c8e6e60111a (diff)
downloadscummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.tar.gz
scummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.tar.bz2
scummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.zip
HDB: Stick Sound names in Lua
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/lua-script.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index fb8a2bf88c..d0dc52f03b 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -1758,7 +1758,11 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip
lua_pushnumber(_state, 480 - 14);
lua_setglobal(_state, "BOTTOM_Y");
- warning("STUB: Stick Sound Names into Lua");
+ for (int j = 0; j < g_hdb->_sound->getNumSounds(); j++) {
+ const char *name = g_hdb->_sound->getSNDLuaName(j);
+ lua_pushnumber(_state, j);
+ lua_setglobal(_state, name);
+ }
// Set the Entity Spawn Names in Lua
int j = 0;