aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/lua-script.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index dc402e7f7c..c930d48a61 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -2025,6 +2025,11 @@ void LuaScript::addPatches(Common::String &chunk, const char *scriptName) {
if (applied)
debug(1, "Applied %d patches to %s", applied, scriptName);
+
+ if (gDebugLevel > 3) {
+ warning(">>>>>>>>>>> SCRIPT: %s", scriptName);
+ chunk += "\nfor i,v in pairs(_G) do if type(v) == 'function' then print(i) end end";
+ }
}
void LuaScript::checkParameters(const char *func, int params) {