diff --git a/source/framelimit.ixx b/source/framelimit.ixx index 9848f904..d59ae7b2 100644 --- a/source/framelimit.ixx +++ b/source/framelimit.ixx @@ -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() += []()