v1.40.3.8555+ support and other quirks.

* Now works with v1.40.3.8555 (inlined) and older versions too.
* Added a whitelist of features now rather than a global-enable.
* Refactored some code to use std::optional.
* Linux: Wrote proper hooking function. No unhooking support as it's unneeded.
* Windows: Now uses SafetyHook as we need trampolines.
* Windows: When building for debug, you can see queried features and their caller (return address offset from PMS base address); reverse on your own or query me.
This commit is contained in:
yuv420p10le
2024-06-11 17:47:45 +03:00
parent 7897276f16
commit 2a003b95ba
14 changed files with 70503 additions and 78 deletions

View File

@@ -21,6 +21,9 @@
<ClCompile Include="hook.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="safetyhook.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="hook.hpp">
@@ -29,5 +32,8 @@
<ClInclude Include="proxy.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="safetyhook.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>