PAGalaxyLab/YAHFA

Hook the return of the function

thelittlefireman opened this issue · 2 comments

Hi, is there a way to invert the hook :
Call the original method first then hook the last instruction or the return of this function ?

Thanks

rk700 commented

No, because entrypoint replacement is used in YAHFA instead of inline hook. But you can invoke the original method at the beginning of the hook and apply changes to the return result of the target method.

Thanks :)