| 7 | |
| 8 | SafetyHookInline shMainLoop = {}; |
| 9 | void __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 | |
| 34 | SafetyHookInline shMiniMainLoop = {}; |
| 35 | void __cdecl MiniMainLoop() |
nothing calls this directly
no test coverage detected