Quote:
Originally Posted by Venipa
Code:
f:write("\r\n-- Arguments:\r\n")
|
How shady do you have to be?
This dumper has nothing to add than any other _G file write iteration, try catch probably just from the internet aswell, debug.getinfo with "S" only adds source thats written in plain lua, which elsword doesnt have (only C functions and byte code lua).
Arguments can be known by
a) knowing corresponding byte code values of the els compiler and something like jit.utils.funcbc
b) hooking the function with the
template
Code:
realfunction = <enter function here>
local f = function(...)
arr = {...}
for k,v in pairs(arr) do
--code to write
--use type(v) to get type of argument or if you want values just use v (or tostring(v))
end
return realfunction(...)
end
realfunction = f
That's not ready to use though, so if you're taking the effort to work on something feel free to use it to get arguments of functions. I also got a bulk function dumper but I don't wanna openly release it for you have to set it up first