Skip to content

Commit

Permalink
[interface] merged #78
Browse files Browse the repository at this point in the history
update ISwapChainDx11 pattern
  • Loading branch information
maecry authored May 9, 2024
2 parents 52d9a9d + 8a266da commit 8b379ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cstrike/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* - used to verify game version
*/

#define CS_PRODUCTSTRINGVERSION CS_XOR("1.40.0.5")
#define CS_PRODUCTSTRINGVERSION CS_XOR("1.40.0.6")

/*
* game's modules
Expand Down
2 changes: 1 addition & 1 deletion cstrike/core/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ bool I::Setup()
#pragma endregion

// @ida: #STR: "r_gpu_mem_stats", "-threads", "CTSListBase: Misaligned list\n", "CTSQueue: Misaligned queue\n", "Display GPU memory usage.", "-r_max_device_threads"
SwapChain = **reinterpret_cast<ISwapChainDx11***>(MEM::ResolveRelativeAddress(MEM::FindPattern(RENDERSYSTEM_DLL, CS_XOR("66 0F 7F 05 ? ? ? ? 66 0F 7F 0D ? ? ? ? 48 89 35")), 0x4, 0x8));
SwapChain = **reinterpret_cast<ISwapChainDx11***>(MEM::ResolveRelativeAddress(MEM::FindPattern(RENDERSYSTEM_DLL, CS_XOR("66 0F 7F 05 ? ? ? ? 66 0F 7F 0D ? ? ? ? 48 89 2D ? ? ? ? 0F 1F 80")), 0x4, 0x8));
bSuccess &= (SwapChain != nullptr);

// grab's d3d11 interfaces for later use
Expand Down

0 comments on commit 8b379ed

Please sign in to comment.