19 lines
1.1 KiB
Lua
19 lines
1.1 KiB
Lua
-- Bounded inspection of Lua libraries and already loaded presentation modules.
|
|||
|
|
do local function capture()
|
||
|
|
local s=_G.__gacGameplayBindings1 or {index=1};_G.__gacGameplayBindings1=s
|
||
|
|
if s.index>3 then return end
|
||
|
|
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_GAMEPLAY_BINDINGS] '..tostring(x))end
|
||
|
|
if s.index==1 then
|
||
|
|
log('LIB string.dump='..type(string.dump)..' debug='..type(debug))
|
||
|
|
if type(debug)=='table'then for k,v in pairs(debug)do log('DEBUG '..tostring(k)..' '..type(v))end end
|
||
|
|
elseif s.index==2 then
|
||
|
|
local m=package.loaded['Ui.Gacha.GachaMainPage']
|
||
|
|
if type(m)=='table'then for k,v in pairs(m)do log('GACHA '..tostring(k)..' '..type(v))end end
|
||
|
|
else
|
||
|
|
local n=0;for k,v in pairs(package.loaded)do
|
||
|
|
local name=tostring(k);if name:find('FiveDim')or name:find('ChenLing')or name:find('Gacha')then log('LOADED '..name..' '..type(v))end
|
||
|
|
n=n+1;if n>=4096 then log('TRUNCATED');break end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
s.index=s.index+1
|
||
|
|
end;local ok,e=pcall(capture);if not ok then _G.__gacGameplayBindings1={index=99};CS.UnityEngine.Debug.Log('[GAC_GAMEPLAY_BINDINGS] ERROR '..tostring(e))end end
|