Syntax
Aliase
hookfuncreplaceclosuredetourfunctiondetour_function
Hookt eine target function mit einer replacement function und gibt eine cloned copy der original target closure zurück. Beide arguments müssen functions sein. Die function flusht zuerst pending C function swaps, cloned den target über function cloning, fügt die replacement closure oder ihr mapped newcclosure target zu hidden stack tracking hinzu, ruft FixCallstack für target und cloned original auf und patcht dann die target closure über den C closure, Luau closure oder newcclosure-specific path. Wenn target noch nicht in hook records ist, wird das cloned original dort für restorefunction gespeichert. Die returned function ist die cloned original closure.
hookfuncreplaceclosuredetourfunctiondetour_function