From b9e07c88597ab305144360424897bf083b8942d1 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Wed, 20 Nov 2024 00:53:08 +0800 Subject: [PATCH] re1: improve fps unlock pattern --- .../ResidentEvil.FusionFix/scripts/ResidentEvil.FusionFix.ini | 2 +- source/ResidentEvil.FusionFix/dllmain.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/ResidentEvil.FusionFix/scripts/ResidentEvil.FusionFix.ini b/data/ResidentEvil.FusionFix/scripts/ResidentEvil.FusionFix.ini index 33dafc210..44451d171 100644 --- a/data/ResidentEvil.FusionFix/scripts/ResidentEvil.FusionFix.ini +++ b/data/ResidentEvil.FusionFix/scripts/ResidentEvil.FusionFix.ini @@ -1,6 +1,6 @@ [MAIN] UnlockAllResolutions = 1 -UnlockFPS = 1 +UnlockFPS = 0 HideMouseCursorAfterMs = 5000 DoorSkip = 1 BorderlessWindowed = 1 diff --git a/source/ResidentEvil.FusionFix/dllmain.cpp b/source/ResidentEvil.FusionFix/dllmain.cpp index edccd342e..3e85b14fb 100644 --- a/source/ResidentEvil.FusionFix/dllmain.cpp +++ b/source/ResidentEvil.FusionFix/dllmain.cpp @@ -605,8 +605,8 @@ void Init() if (bUnlockFPS) { - auto pattern = hook::pattern("00 00 F0 42 EB 39 6A 01"); - injector::WriteMemory(pattern.get_first(), 1000.0f, true); + auto pattern = hook::pattern("C7 40 ? ? ? ? ? EB ? 6A 01"); + injector::WriteMemory(pattern.get_first(3), 1000.0f, true); } }