Skip to content

Commit

Permalink
re1: improve fps unlock pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Nov 19, 2024
1 parent 6921e94 commit b9e07c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MAIN]
UnlockAllResolutions = 1
UnlockFPS = 1
UnlockFPS = 0
HideMouseCursorAfterMs = 5000
DoorSkip = 1
BorderlessWindowed = 1
Expand Down
4 changes: 2 additions & 2 deletions source/ResidentEvil.FusionFix/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit b9e07c8

Please sign in to comment.