Closed jhett12321 closed 3 months ago
Context: https://discord.com/channels/382306806866771978/662711711605719051/1235673196355784794
Since the hook trampoline value can change from other hooks that might subscribe before it, it is currently not possible to reliably return a hook.
This PR adds new hook methods to use pointers to the full Hooks::FunctionHook structure, which should be much more reliable for hook returns.
Context: https://discord.com/channels/382306806866771978/662711711605719051/1235673196355784794
Since the hook trampoline value can change from other hooks that might subscribe before it, it is currently not possible to reliably return a hook.
This PR adds new hook methods to use pointers to the full Hooks::FunctionHook structure, which should be much more reliable for hook returns.