Skip to content

Commit b1d68ef

Browse files
committed
simplifiy pattern
1 parent c029be8 commit b1d68ef

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/game/pointers/Pointers.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,20 +451,15 @@ namespace YimMenu
451451
scanner.Add(matchmakingSessionDetailSendResponsePtrn, [this](PointerCalculator addr) {
452452
MatchmakingSessionDetailSendResponse = addr.Add(0x2F).Rip().As<PVOID>();
453453
});
454-
455454
static constexpr auto gameSkeletonUpdatePtrn = Pattern<"56 48 83 EC 20 48 8B 81 40 01 00 00 48 85 C0">("GameSkeletonUpdate");
456455
scanner.Add(gameSkeletonUpdatePtrn, [this](PointerCalculator addr) {
457456
GameSkeletonUpdate = addr.As<PVOID>();
458457
});
459458

460-
static constexpr auto getLabelTextPtrn = Pattern<"56 48 83 EC 20 48 85 D2 74 25">("GetLabelText");
459+
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");
461460
scanner.Add(getLabelTextPtrn, [this](PointerCalculator addr) {
462461
GetLabelText = addr.As<PVOID>();
463-
});
464-
465-
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");
466-
scanner.Add(getLabelTextInternalPtrn, [this](PointerCalculator addr) {
467-
GetLabelTextInternal = addr.As<PVOID>();
462+
GetLabelTextInternal = addr.Add(36).Rip().As<PVOID>();
468463
});
469464

470465
if (!scanner.Scan())

0 commit comments

Comments
 (0)