Skip to content

Commit

Permalink
additional framelimiter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Aug 27, 2024
1 parent 174cf90 commit f49b252
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/framelimit.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ public:
auto pattern = hook::pattern("E8 ? ? ? ? 83 C4 0C C7 04 B5 ? ? ? ? ? ? ? ? 4E");
if (!pattern.empty())
hbsub_C64CB0.fun = injector::MakeCALL(pattern.get_first(0), sub_C64CB0).get();

pattern = hook::pattern("83 EC 28 83 3D ? ? ? ? ? 56 8B F1");
if (!pattern.empty())
{
static auto InfiniteLoadingWorkaround2 = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs)
{
LoadingFpsLimiter.Sync();
});
}
};

FusionFix::onShutdownEvent() += []()
Expand Down

0 comments on commit f49b252

Please sign in to comment.