metamod-source
metamod-source copied to clipboard
x64 windows sourcehook hookmangen
Add x64 dynamic hook support to SourceHook, Windows only
- Added
x64GenContextto generate SourceHook virtual stubs on x86_64 GenBufferhas been moved tosh_asm.h, since it's only ever used to allocate blocks of memories where assembly is written atx64JitWriter(inheriting fromGenBuffer). It's a collection of helper functions to write x86_64 assembly bytes- Added
IGenContextin order to keep a single implementation ofCHookManagerAutoGenthat can be compiled on all architectures. Consequently,x64GenContext&GenContextinherit fromIGenContext
This is already a massive PR as it is. And I really don't want to be adding Linux support right now, but it will come shortly after rest assured.
@dvander @TheDS @peace-maker
I believe you'll be the ones that want to look most at this, given it's pertaining to sourcehook. My goal is to have this PR merged, before I make any further changes for linux support.