List all the files in the current dir via console */
| 565 | |
| 566 | /* List all the files in the current dir via console */ |
| 567 | static bool ConListFiles(std::span<std::string_view> argv) |
| 568 | { |
| 569 | if (argv.empty()) { |
| 570 | IConsolePrint(CC_HELP, "List all loadable savegames and directories in the current dir via console. Usage: 'ls | dir'."); |
| 571 | return true; |
| 572 | } |
| 573 | |
| 574 | _console_file_list_savegame.ValidateFileList(true); |
| 575 | for (uint i = 0; i < _console_file_list_savegame.size(); i++) { |
| 576 | IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_savegame[i].title.GetDecodedString()); |
| 577 | } |
| 578 | |
| 579 | return true; |
| 580 | } |
| 581 | |
| 582 | /* List all the scenarios */ |
| 583 | static bool ConListScenarios(std::span<std::string_view> argv) |
nothing calls this directly
no test coverage detected