itchio / capsule

🎬 Cross-platform hotkey short video capture for games
GNU General Public License v2.0
178 stars 14 forks source link

Give PolyHook a try #2

Closed fasterthanlime closed 7 years ago

fasterthanlime commented 8 years ago

Deviare-InProc (Nkt) has nice things like "launch an .exe with injected DLL" or "load DLL remotely in hooked process", but PolyHook does virtual function detour/fp swap/tp swap, and we'll need that for Direct3D.

see

Both Deviare-InProc and PolyHook use a disassembler to make sure the hook code wouldn't overwrite something after the function boundary - OBS doesn't seem to.

OBS also uses separate executables for getting graphics offsets, and injecting a dll into another process

fasterthanlime commented 7 years ago

I've settled for Deviare-InProc, ffmpeg+x264 means we were forced to go for GPLv2 anyway.

Also, D3D11 capture is working now, see