View Single Post
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 01-12-2019 , 07:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #644

Quote:
Originally Posted by Peace-Maker View Post
That's an outstanding issue with parameter addresses getting reused in the functions on Windows, so post-hooks don't have access to the initial input anymore. The same holds for the this-pointer, except that there is special handling to save it and restore it for a post-hook. It is only saved from a pre-hook though and thus requires one. To work around that for now, you can add an empty pre hook on the function and you'll have access to the this-pointer in the post hook as well. This doesn't work for parameters.
Thank you, now the post hook works correctly, but next time it'd be better this info is mentioned somewhere.
__________________
My plugins:
*None for now*


Steam:
naydef
Naydef is offline