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

Function MainLoop

source/NFSCarbon.WidescreenFix/dllmain.cpp:9–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8SafetyHookInline shMainLoop = {};
9void __cdecl MainLoop(float TickerDifference)
10{
11 std::call_once(of, []()
12 {
13 WFP::onGameInitEvent().executeAll();
14 });
15
16 WFP::onGameProcessEvent().executeAll();
17
18 static bool oldMenuState = GameFlowManager::IsPaused();
19 bool curMenuState = GameFlowManager::IsPaused();
20 if (curMenuState != oldMenuState)
21 {
22 if (curMenuState)
23 WFP::onMenuEnterEvent().executeAll();
24 else
25 WFP::onMenuExitEvent().executeAll();
26 }
27 oldMenuState = curMenuState;
28 if (curMenuState)
29 WFP::onMenuDrawingEvent().executeAll();
30
31 shMainLoop.unsafe_ccall(TickerDifference);
32}
33
34SafetyHookInline shMiniMainLoop = {};
35void __cdecl MiniMainLoop()

Callers

nothing calls this directly

Calls 1

executeAllMethod · 0.80

Tested by

no test coverage detected