-- Inspect only named loaded functions; does not invoke gameplay callbacks. do local function capture() local s=_G.__gacGameplayUpvalues1 or {index=1};_G.__gacGameplayUpvalues1=s local targets={ {'Ui.Gacha.GachaMainPage','_create_pools_panel'}, {'Ui.Gacha.GachaPool.DefaultGachaAvatarPanel','_refresh'}, {'Ui.Gacha.GachaPool.DefaultGachaUpAvatarPanel','_refresh'}, {'Ui.Puzzle.FiveDimGame.FiveDimUtils',false}, {'Ui.Puzzle.FiveDimGame.MiniGameSet.FiveDimMiniGameConst',false}} if s.index>#targets then return end local target=targets[s.index];s.index=s.index+1 local t=package.loaded[target[1]];if type(t)~='table'then return end local log=function(x)CS.UnityEngine.Debug.Log('[GAC_GAMEPLAY_UPVALUES] '..tostring(x))end log('MODULE '..target[1]) if target[2]then local fn=t[target[2]];if type(fn)~='function'then return end for i=1,48 do local name,value=debug.getupvalue(fn,i);if name==nil then break end log('UP '..tostring(name)..' '..type(value)..' '..tostring(value)) if type(value)=='table'and name~='_ENV'then local n=0;for k,v in pairs(value)do log('KEY '..tostring(k)..' '..type(v)..' '..tostring(v));n=n+1;if n>=80 then break end end end end else local n=0;for k,v in pairs(t)do log('KEY '..tostring(k)..' '..type(v)..' '..tostring(v));n=n+1;if n>=128 then break end end end end;local ok,e=pcall(capture);if not ok then _G.__gacGameplayUpvalues1={index=99};CS.UnityEngine.Debug.Log('[GAC_GAMEPLAY_UPVALUES] ERROR '..tostring(e))end end