From 4c44fa2eff8fd8ee405a66450d56fac5c3df3443 Mon Sep 17 00:00:00 2001 From: CrazyRedMachine Date: Thu, 13 Jun 2024 08:22:58 +0200 Subject: [PATCH] fix skip tutorial patch --- popnhax/dllmain.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/popnhax/dllmain.cc b/popnhax/dllmain.cc index 5c40064..bcf0acf 100644 --- a/popnhax/dllmain.cc +++ b/popnhax/dllmain.cc @@ -33,7 +33,7 @@ #include "SearchFile.h" -#define PROGRAM_VERSION "2.0" +#define PROGRAM_VERSION "2.1.dev" const char *g_game_dll_fn = NULL; char *g_config_fn = NULL; @@ -2370,12 +2370,12 @@ static bool patch_skip_tutorials() { return false; } - int64_t pattern_offset = search(data, 0x10, "\x74", 1, first_loc); + int64_t pattern_offset = search(data, 0x10, "\x84\xC0\x74", 3, first_loc); if (pattern_offset == -1) { return false; } - uint64_t patch_addr = (int64_t)data + pattern_offset; + uint64_t patch_addr = (int64_t)data + pattern_offset + 2; patch_memory(patch_addr, (char *)"\xEB", 1); }