lundi 10 mars 2014

[Coding] Thief D3D hooking. topic




I've run into a problem when trying to hook Thief (2014) game. Simply put, it removes my hook after 1 frame. Now, nothing surprising here, but.. I pretty much copied the hook code from OBS, which still works with the game. What's going on here?

Hook is as simple as it gets - copy the first 5 or 14 bytes (depending on whether a near or far jump is required) of the original proc and replace them with a jump instruction. Then in our function we unhook, call the original, and rehook.

I'm hooking IDXGISwapChain::Present btw.





Aucun commentaire:

Enregistrer un commentaire