Skip to content

Commit

Permalink
Update Pointers.cpp (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
AAA-ALR authored Mar 21, 2024
1 parent ced81a6 commit 58f2df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/pointers/Pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace YimMenu
SendMetric = ptr.As<PVOID*>();
});

constexpr auto vmDetectionCallbackPtrn = Pattern<"48 8B 0D ? ? ? ? 33 F6 E8 ? ? ? ? 48 8B 0D">("VMDetectionCallback");
constexpr auto vmDetectionCallbackPtrn = Pattern<"48 8B 0D ? ? ? ? E8 ? ? ? ? 48 8B 0D ? ? ? ? 8D 7E">("VMDetectionCallback");
scanner.Add(vmDetectionCallbackPtrn, [this](PointerCalculator ptr) {
auto loc = ptr.Add(3).Rip().As<uint8_t*>();
VmDetectionCallback = (PVOID*)loc;
Expand Down Expand Up @@ -254,7 +254,7 @@ namespace YimMenu
WritePlayerHealthData = ptr.As<PVOID>();
});

constexpr auto requestControlPtrn = Pattern<"E8 ? ? ? ? 48 83 C4 ? 5B C3 CC E9 ? ? ? ? 24 ? 48 89 4C 24">("RequestControl");
constexpr auto requestControlPtrn = Pattern<"E8 ? ? ? ? 32 C0 48 83 C4 ? 5B C3 B0 ? EB ? 48 8D 0D">("RequestControl");
scanner.Add(requestControlPtrn, [this](PointerCalculator ptr) {
RequestControlOfNetObject = ptr.Add(1).Rip().As<Functions::RequestControlOfNetObject>();
});
Expand Down

0 comments on commit 58f2df5

Please sign in to comment.