diff options
author | Nipun Garg | 2019-07-25 04:19:36 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:28 +0200 |
commit | 2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad (patch) | |
tree | db5cdcb4817121f25f220759f9eba50a4cffaeaf /engines | |
parent | 1a7fc846cf2b62c9a91615b207ba2c8e6e60111a (diff) | |
download | scummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.tar.gz scummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.tar.bz2 scummvm-rg350-2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad.zip |
HDB: Stick Sound names in Lua
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/lua-script.cpp | 6 |
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; |