Originally Posted by ZOS_ChipHilseberg
We added IsTrustedFunction which can tell you if a C function of lua closure is trusted or not.
|
Thanks! Just to clarify, how would this function be used?
For example what would this code print:
Lua Code:
local objects = ZO_Menu.itemPool:GetActiveObjects()
for k, v in pairs(objects) do
local nameControl = GetControl(v, "Name")
df("%s: %s", nameControl:GetText(), tostring(IsTrustedFunction(v.OnSelect)))
end