aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-16 21:44:57 +0200
committerEugene Sandulenko2019-09-03 17:17:21 +0200
commite0cb401bc2c3fa3c74cd2342e13529254c816626 (patch)
tree439ba9486fcf08e80828a883afd8a55b00f005b5 /engines/hdb
parentea2f09b2560ffef5f9e81453f5d9a5d0f0d87af0 (diff)
downloadscummvm-rg350-e0cb401bc2c3fa3c74cd2342e13529254c816626.tar.gz
scummvm-rg350-e0cb401bc2c3fa3c74cd2342e13529254c816626.tar.bz2
scummvm-rg350-e0cb401bc2c3fa3c74cd2342e13529254c816626.zip
HDB: Added more debug output to script compilation
Diffstat (limited to 'engines/hdb')
-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) {