MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / MainLoop

Function MainLoop

source/NFSUndercover.FusionFix/dllmain.cpp:12–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11SafetyHookInline shMainLoop = {};
12void __cdecl MainLoop(float TickerDifference)
13{
14 #ifdef _DEBUG
15 SetSpeed(1.0f);
16 #endif
17
18 std::call_once(of, []()
19 {
20 WFP::onGameInitEvent().executeAll();
21 });
22
23 WFP::onGameProcessEvent().executeAll();
24
25 static bool oldMenuState = GameFlowManager::IsPaused();
26 bool curMenuState = GameFlowManager::IsPaused();
27 if (curMenuState != oldMenuState)
28 {
29 if (curMenuState)
30 WFP::onMenuEnterEvent().executeAll();
31 else
32 WFP::onMenuExitEvent().executeAll();
33 }
34 oldMenuState = curMenuState;
35 if (curMenuState)
36 WFP::onMenuDrawingEvent().executeAll();
37
38 shMainLoop.unsafe_ccall(TickerDifference);
39}
40
41SafetyHookInline shMiniMainLoop = {};
42void __cdecl MiniMainLoop()

Callers

nothing calls this directly

Calls 1

executeAllMethod · 0.80

Tested by

no test coverage detected