| 1839 | } |
| 1840 | |
| 1841 | static 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 | |
| 1854 | static bool ConPart(std::span<std::string_view> argv) |
| 1855 | { |
nothing calls this directly
no test coverage detected