* Explicitly save the configuration. * @return True. */
| 444 | * @return True. |
| 445 | */ |
| 446 | static bool ConSaveConfig(std::span<std::string_view> argv) |
| 447 | { |
| 448 | if (argv.empty()) { |
| 449 | IConsolePrint(CC_HELP, "Saves the configuration for new games to the configuration file, typically 'openttd.cfg'."); |
| 450 | IConsolePrint(CC_HELP, "It does not save the configuration of the current game to the configuration file."); |
| 451 | return true; |
| 452 | } |
| 453 | |
| 454 | SaveToConfig(); |
| 455 | IConsolePrint(CC_DEFAULT, "Saved config."); |
| 456 | return true; |
| 457 | } |
| 458 | |
| 459 | static bool ConLoad(std::span<std::string_view> argv) |
| 460 | { |
nothing calls this directly
no test coverage detected