From a388b09bee51f547a51fdb2640a1fa25ee1061b1 Mon Sep 17 00:00:00 2001 From: polsrepo <110729177+polsrepo@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:25:04 +0200 Subject: [PATCH] Update er-patcher for v1.12 Updated hex pattern for patch.rate, fixed the offset value for patch.remove_60hz_fullscreen --- er-patcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/er-patcher b/er-patcher index f328e0d..fe4fb3c 100755 --- a/er-patcher +++ b/er-patcher @@ -37,7 +37,7 @@ if __name__ == "__main__": exe_hex = f.read().hex() if patch.rate != 60 and patch.rate > 0: - r_pattern = "c7 43 20 89 88 88 3c eb 43 89 73 18 eb ca 89 73 18".replace(" ", "") + r_pattern = "c7 43 1c 89 88 88 3c eb 6d 89 73 18 eb c7 89 73 18".replace(" ", "") if (res := re.search(r_pattern, exe_hex)) is not None: r_addr = res.span()[0] + 6 r_patch = struct.pack('