Reverses hookfunction - the target goes back to running its original body.
Pass the function you hooked and it stops running the hook. If the same function was hooked more than once, one restorefunction call still reverts it to the very first original. After it runs, isfunctionhooked reports false for that function.
Throws an error if the function you passed was never hooked.
Parameters
Returns
void
Aliases
Example
Hook a function only while you need it, then put it back so the rest of the game keeps seeing the real one.
Cleans up memory hook state and resets the function pointers.