From 2ba18da94dd0c4fc3bfac59c1d57d760e80bf9ad Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 25 Jul 2019 04:19:36 +0530 Subject: HDB: Stick Sound names in Lua --- engines/hdb/lua-script.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3