From 65fcd31f352ca5b731c7f6b038b856788c13004b Mon Sep 17 00:00:00 2001 From: quaK <38787176+Joelrau@users.noreply.github.com> Date: Fri, 10 Feb 2023 12:56:30 +0200 Subject: [PATCH] patch g_speed stub --- src/client/component/gameplay.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/component/gameplay.cpp b/src/client/component/gameplay.cpp index 269c2437..e2a4d0b0 100644 --- a/src/client/component/gameplay.cpp +++ b/src/client/component/gameplay.cpp @@ -82,11 +82,7 @@ namespace gameplay { return utils::hook::assemble([](utils::hook::assembler& a) { - // original code - a.add(eax, ptr(rdi, 0x1FD0)); - a.push(rax); - a.push(eax); a.mov(rax, qword_ptr(reinterpret_cast(&*reinterpret_cast(0x3C98330_b)))); a.mov(eax, dword_ptr(rax, 0x10)); @@ -94,7 +90,10 @@ namespace gameplay a.mov(dword_ptr(rdi, 0x7C), eax); a.pop(rax); - a.pop(eax); + + // original code + a.mov(eax, ptr(rdi, 0x1FD4)); + a.add(eax, ptr(rdi, 0x1FD0)); a.jmp(0xAFB1EC_b); });