| 2384 | } |
| 2385 | |
| 2386 | static bool ConSetting(std::span<std::string_view> argv) |
| 2387 | { |
| 2388 | if (argv.empty()) { |
| 2389 | IConsolePrint(CC_HELP, "Change setting for all clients. Usage: 'setting <name> [<value>]'."); |
| 2390 | IConsolePrint(CC_HELP, "Omitting <value> will print out the current value of the setting."); |
| 2391 | return true; |
| 2392 | } |
| 2393 | |
| 2394 | if (argv.size() == 1 || argv.size() > 3) return false; |
| 2395 | |
| 2396 | if (argv.size() == 2) { |
| 2397 | IConsoleGetSetting(argv[1]); |
| 2398 | } else { |
| 2399 | IConsoleSetSetting(argv[1], argv[2]); |
| 2400 | } |
| 2401 | |
| 2402 | return true; |
| 2403 | } |
| 2404 | |
| 2405 | static bool ConSettingNewgame(std::span<std::string_view> argv) |
| 2406 | { |
nothing calls this directly
no test coverage detected