MCPcopy Create free account
hub / github.com/chrxh/alien / processExiting

Method processExiting

source/Gui/MainLoopController.cpp:253–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void MainLoopController::processExiting()
254{
255 SimulationView::get().draw();
256
257 pushGlobalStyle();
258 processMenubar();
259 MainLoopEntityController::get().process();
260 OverlayController::get().process();
261 SimulationView::get().processSimulationScrollbars();
262 popGlobalStyle();
263
264 FpsController::get().processForceFps(WindowController::get().getFps());
265
266 auto requestedSimState = _persisterFacade->getRequestState(_saveSimRequestId).value();
267 if (requestedSimState == PersisterRequestState::Finished) {
268 _persisterFacade->fetchSaveSimulationData(_saveSimRequestId);
269 _programState = ProgramState::Finished;
270 } else if (requestedSimState == PersisterRequestState::Error) {
271 _programState = ProgramState::Finished;
272 }
273}
274
275void MainLoopController::drawLoadingScreen()
276{

Callers

nothing calls this directly

Calls 7

drawMethod · 0.80
processForceFpsMethod · 0.80
getFpsMethod · 0.80
processMethod · 0.45
getRequestStateMethod · 0.45

Tested by

no test coverage detected