nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
131 stars 92 forks source link

DotNET: Add FunctionHook Overloads #1763

Closed jhett12321 closed 3 months ago

jhett12321 commented 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.