diff options
author | Eugene Sandulenko | 2019-07-17 00:42:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:21 +0200 |
commit | 2bb172a58614359ed720b24ba49e9b6c288b3d39 (patch) | |
tree | 7e8d2788ea164ac4805eaa3615d135f902ea9e37 /engines | |
parent | 49b0f7c6d21c8c94bdac3963c181ebc7f4e5ccb8 (diff) | |
download | scummvm-rg350-2bb172a58614359ed720b24ba49e9b6c288b3d39.tar.gz scummvm-rg350-2bb172a58614359ed720b24ba49e9b6c288b3d39.tar.bz2 scummvm-rg350-2bb172a58614359ed720b24ba49e9b6c288b3d39.zip |
HDB: Filter out more Lua globals from the save
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 1160d000d7..23b10110fd 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -44,7 +44,7 @@ struct ScriptPatch { {"GLOBAL.LUA", "for i,v in globals() do", "for i,v in pairs(_G) do"}, {"GLOBAL.LUA", "return gsub( s, \"\\n\", \"\\\\\\n\" )", "return string.gsub( s, \"\\n\", \"\\\\\\n\" )"}, {"GLOBAL.LUA", "for i,v in t do", "for i,v in pairs(t) do"}, - {"GLOBAL.LUA", "if type(v) == 'userdata' or type(v) == 'function' then return end", "if type(v) == 'userdata' or type(v) == 'function' or i == 'package' or i == 'os' or i == 'io' or i == 'string' or i == 'table' then return end" }, // Line 16 + {"GLOBAL.LUA", "if type(v) == 'userdata' or type(v) == 'function' then return end", "if type(v) == 'userdata' or type(v) == 'function' or i == 'package' or i == 'os' or i == 'io' or i == 'string' or i == 'table' or i == 'debug' or i == 'math' or i == 'coroutine' then return end" }, // Line 16 {"GLOBAL.LUA", "for npcname,npcdata in npcs do", "for npcname,npcdata in pairs(npcs) do"}, // Line 66 {"GLOBAL.LUA", "for dlgname,dlgdata in npcdata.dialog do", "for dlgname,dlgdata in pairs(npcdata.dialog) do"}, // Line 67 {"GLOBAL.LUA", "s = format( \"npcs.%s.dialog.%s.counter", "s = string.format( \"npcs.%s.dialog.%s.counter"}, // Line 68 |