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

Function DoExitSave

src/saveload/saveload.cpp:3367–3370  ·  view source on GitHub ↗

Do a save when exiting the game (_settings_client.gui.autosave_on_exit) */

Source from the content-addressed store, hash-verified

3365
3366/** Do a save when exiting the game (_settings_client.gui.autosave_on_exit) */
3367void DoExitSave()
3368{
3369 SaveOrLoad("exit.sav", SLO_SAVE, DFT_GAME_FILE, AUTOSAVE_DIR);
3370}
3371
3372/**
3373 * Get the default name for a savegame *or* screenshot.

Callers 5

HandleExitGameRequestFunction · 0.85
ConExitFunction · 0.85
OnHotkeyMethod · 0.85
DedicatedSignalHandlerFunction · 0.85
MainLoopMethod · 0.85

Calls 1

SaveOrLoadFunction · 0.85

Tested by

no test coverage detected