| 251 | } |
| 252 | |
| 253 | void 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 | |
| 275 | void MainLoopController::drawLoadingScreen() |
| 276 | { |
nothing calls this directly
no test coverage detected