Skip to content

Commit

Permalink
new door skip for re2gc
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Oct 20, 2023
1 parent 37d9e85 commit cb9bdd9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/ResidentEvil2.Dolphin.FusionMod/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ void Init()
}
if (bEnableDoorSkip)
{
pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "54 7d 04 3e 38 00 00 01 98 1f 00 01");
pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "7f a0 22 14 ? ? ? ? ? ? ? ? 38 00 00 00 ? ? ? ? 38 00 00 00");
if (pattern.size() >= 1)
{
injector::WriteMemory(pattern.get(0).get<void>(4), li(r0, 10), true);
Dolphin::MenuBarClearCache();
}

pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "54 7d 04 3e 38 00 00 01 98 1f 00 01 38 00 00 00");
if (pattern.size() >= 1)
{
injector::WriteMemory(pattern.get(0).get<void>(4), li(r0, 0), true);
Expand Down

0 comments on commit cb9bdd9

Please sign in to comment.