HI guys, im trying to hook a function to copy or inspect the parameter. but i alway got crash when ever try to print the parameter
:( can any1 give me an example code or docs about the script in libtool.
:( can any1 give me an example code or docs about the script in libtool.
Code:
TrophiesManager = Class.fromName("Managers.Trophies.TrophiesManager")
MethodHook = TrophiesManager.KFJBHDHFFFD
hook {
method = MethodHook,
after = function(...)
local argc = select("#", ...)
print("argc =", argc)
for i = 1, argc do
local v = select(i, ...)
print(i, type(v))
end
end
}