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

@@ -178,10 +178,12 @@
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="hook.cpp" />
<ClCompile Include="safetyhook.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="hook.hpp" />
<ClInclude Include="proxy.hpp" />
<ClInclude Include="safetyhook.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">