From d7bac40370c2234cbd5a46cc928c521632cc1cc0 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 20 Mar 2023 21:25:03 +0100 Subject: [PATCH] Properly fake the call checks --- src/client/component/arxan.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/component/arxan.cpp b/src/client/component/arxan.cpp index fcaa3220..aa70bc40 100644 --- a/src/client/component/arxan.cpp +++ b/src/client/component/arxan.cpp @@ -71,7 +71,8 @@ namespace arxan uint64_t get_callstack_return_stub() { - const auto placeholder = game::select(0x140001056, 0x140101167); + const auto placeholder = game::select(0x140001056, 0x140101168); + utils::hook::set(placeholder - 2, 0xFF); // fakes a call utils::hook::nop(placeholder, 1); utils::hook::jump(placeholder + 1, utils::hook::assemble(callstack_return_stub));