MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / PostMainLoop

Function PostMainLoop

src/openttd.cpp:452–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450};
451
452void PostMainLoop()
453{
454 WaitTillSaved();
455
456 /* only save config if we have to */
457 if (_save_config) {
458 SaveToConfig();
459 SaveHotkeysToConfig();
460 WindowDesc::SaveToConfig();
461 SaveToHighScore();
462 }
463
464 /* Reset windowing system, stop drivers, free used memory, ... */
465 ShutdownGame();
466}
467
468#if defined(UNIX)
469extern void DedicatedFork();

Callers 2

openttd_mainFunction · 0.85
LoopOnceMethod · 0.85

Calls 5

WaitTillSavedFunction · 0.85
SaveToConfigFunction · 0.85
SaveHotkeysToConfigFunction · 0.85
SaveToHighScoreFunction · 0.85
ShutdownGameFunction · 0.85

Tested by

no test coverage detected