| 642 | } |
| 643 | |
| 644 | static bool ConPrintWorkingDirectory(std::span<std::string_view> argv) |
| 645 | { |
| 646 | if (argv.empty()) { |
| 647 | IConsolePrint(CC_HELP, "Print out the current working directory. Usage: 'pwd'."); |
| 648 | return true; |
| 649 | } |
| 650 | |
| 651 | /* XXX - Workaround for broken file handling */ |
| 652 | _console_file_list_savegame.ValidateFileList(true); |
| 653 | _console_file_list_savegame.InvalidateFileList(); |
| 654 | |
| 655 | IConsolePrint(CC_DEFAULT, FiosGetCurrentPath()); |
| 656 | return true; |
| 657 | } |
| 658 | |
| 659 | static bool ConClearBuffer(std::span<std::string_view> argv) |
| 660 | { |
nothing calls this directly
no test coverage detected