* Get a list of savegames. * @param fop Purpose of collecting the list. * @param show_dirs Whether to show directories. * @param file_list Destination of the found files. * @see FiosGetFileList */
| 419 | * @see FiosGetFileList |
| 420 | */ |
| 421 | void FiosGetSavegameList(SaveLoadOperation fop, bool show_dirs, FileList &file_list) |
| 422 | { |
| 423 | static std::optional<std::string> fios_save_path; |
| 424 | |
| 425 | if (!fios_save_path) fios_save_path = FioFindDirectory(SAVE_DIR); |
| 426 | |
| 427 | _fios_path = &(*fios_save_path); |
| 428 | |
| 429 | FiosGetFileList(fop, show_dirs, &FiosGetSavegameListCallback, NO_DIRECTORY, file_list); |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * Callback for FiosGetFileList. It tells if a file is a scenario or not. |
no test coverage detected