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

Function ConExit

src/console_cmds.cpp:1841–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1839}
1840
1841static bool ConExit(std::span<std::string_view> argv)
1842{
1843 if (argv.empty()) {
1844 IConsolePrint(CC_HELP, "Exit the game. Usage: 'exit'.");
1845 return true;
1846 }
1847
1848 if (_game_mode == GM_NORMAL && _settings_client.gui.autosave_on_exit) DoExitSave();
1849
1850 _exit_game = true;
1851 return true;
1852}
1853
1854static bool ConPart(std::span<std::string_view> argv)
1855{

Callers

nothing calls this directly

Calls 3

DoExitSaveFunction · 0.85
IConsolePrintFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected