Skip to content

Commit 63bdbd3

Browse files
committed
simplifiy pattern
1 parent c0b8cd3 commit 63bdbd3

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/game/pointers/Pointers.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,10 @@ namespace YimMenu
445445
MatchmakingSessionDetailSendResponse = addr.Add(0x2F).Rip().As<PVOID>();
446446
});
447447

448-
static constexpr auto getLabelTextPtrn = Pattern<"56 48 83 EC 20 48 85 D2 74 25">("GetLabelText");
448+
static constexpr auto getLabelTextPtrn = Pattern<"56 48 83 EC 20 48 85 D2 74 25 0F B6 02 A8 DF 74 23 48 89 CE 48 89 D1 31 D2 E8 ? ? ? ? 48 89 F1 89 C2 E8 ? ? ? ?">("GetLabelText&GetLabelTextInternal");
449449
scanner.Add(getLabelTextPtrn, [this](PointerCalculator addr) {
450450
GetLabelText = addr.As<PVOID>();
451-
});
452-
453-
static constexpr auto getLabelTextInternalPtrn = Pattern<"41 57 41 56 56 57 53 48 83 EC 20 89 D7 49 89 CE 48 8D 0D ? ? ? ? E8 ? ? ? ?">("GetLabelTextInternal");
454-
scanner.Add(getLabelTextInternalPtrn, [this](PointerCalculator addr) {
455-
GetLabelTextInternal = addr.As<PVOID>();
451+
GetLabelTextInternal = addr.Add(36).Rip().As<PVOID>();
456452
});
457453

458454
if (!scanner.Scan())

0 commit comments

Comments
 (0)