Cross Platform Support based on Detours
- Compile with CMake (currently no cross-compile support)
- Include
detours.h
located in include/ folder - Link the libdetours.lib generated
Detours has a brilliant disassembly engine, so it can reliably handle various corner case of x86 & ARM stuffs.
I made a windows shim header for detours, in particular wrappers for VirtualAlloc, VirtualProtect, VirtualFree and VirtualQuery. With these wrappers and some minor modification, Detours's main functionality would work on most platforms, and we can still easily port patches from upstream Detours.