aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-03 17:01:00 +0200
committerEugene Sandulenko2019-09-03 17:17:09 +0200
commit74eb242b5a0606a274b38e1fdc12b9b8fb908368 (patch)
tree6a25512ffa51b285c182016f97199721f877bb81 /engines/hdb/lua-script.cpp
parent34a3e1685bef4b57f10d4acdbf568a217315fa32 (diff)
downloadscummvm-rg350-74eb242b5a0606a274b38e1fdc12b9b8fb908368.tar.gz
scummvm-rg350-74eb242b5a0606a274b38e1fdc12b9b8fb908368.tar.bz2
scummvm-rg350-74eb242b5a0606a274b38e1fdc12b9b8fb908368.zip
HDB: Unstub HDBGame::restartMap()
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r--engines/hdb/lua-script.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 8e7083b653..eaf46abe85 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -72,6 +72,20 @@ bool LuaScript::init() {
return true;
}
+bool LuaScript::loadLua(char *name) {
+ warning("STUB: loadLua(%s)", name);
+
+ return true;
+}
+
+void LuaScript::setLuaGlobalValue(const char *name, int value) {
+ if (!_state)
+ return;
+
+ lua_pushnumber(_state, value);
+ lua_setglobal(_state, name);
+}
+
/*
Called from Lua, this will pop into the menu
*/