Update GaCy-GO

This commit is contained in:
CAtlas0784 committed 2026-10-28 18:54:43 +07:00
1 parent da8a32f60d
commit 0cbe460e49
345 files changed
+98202 -77559

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
-- Export only three already loaded functions. Never opens or invokes a page.
do local function capture()
local s=_G.__gacGachaDump1 or {index=1};_G.__gacGachaDump1=s
local names={'_create_pools_panel','_on_tab_change','_refresh'}
if s.index>#names then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase)then return end
local m=package.loaded['Ui.Gacha.GachaMainPage'];if type(m)~='table'then return end
local name=names[s.index];s.index=s.index+1
local fn=m[name];if type(fn)~='function'then return end
local raw=string.dump(fn)
if #raw>32768 then return end
local bytes=CS.System.Array.CreateInstance(typeof(CS.System.Byte),#raw)
for i=1,#raw do bytes[i-1]=raw:byte(i)end
CS.UnityEngine.Debug.Log('[GAC_GACHA_DUMP] '..name..' '..CS.System.Convert.ToBase64String(bytes))
end;local ok,e=pcall(capture);if not ok then _G.__gacGachaDump1={index=99};CS.UnityEngine.Debug.Log('[GAC_GACHA_DUMP] ERROR '..tostring(e))end end