Files
GaCy-GO/tools/cw_loaded_lua_probe.lua
T

22 lines
797 B
Lua
Raw Normal View History

-- Read loaded CW Lua modules only. Do not require modules or invoke UI code.
do
if not _G.__gacCwLoadedLua1 then
_G.__gacCwLoadedLua1=true
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_LOADED_LUA] '..tostring(v))end
local n=0
for name,value in pairs(package.loaded)do
if tostring(name):lower():find('gridfight')then
log('MODULE '..tostring(name)..' TYPE '..type(value))
if tostring(name):lower():find('entrance') and type(value)=='table' then
local count=0
for k,v in pairs(value)do
if type(v)=='function' then local info=debug.getinfo(v,'S');log('FUNCTION '..tostring(k)..' '..tostring(info and info.source))end
count=count+1;if count>=64 then break end
end
end
n=n+1;if n>=64 then break end
end
end
log('END '..n)
end
end