* Get a list of town data files. * @param fop Purpose of collecting the list. * @param show_dirs Whether to show directories. * @param file_list Destination of the found files. */
| 562 | * @param file_list Destination of the found files. |
| 563 | */ |
| 564 | void FiosGetTownDataList(SaveLoadOperation fop, bool show_dirs, FileList &file_list) |
| 565 | { |
| 566 | static std::optional<std::string> fios_town_data_path; |
| 567 | |
| 568 | if (!fios_town_data_path) fios_town_data_path = FioFindDirectory(HEIGHTMAP_DIR); |
| 569 | |
| 570 | _fios_path = &(*fios_town_data_path); |
| 571 | |
| 572 | std::string base_path = FioFindDirectory(HEIGHTMAP_DIR); |
| 573 | Subdirectory subdir = base_path == *_fios_path ? HEIGHTMAP_DIR : NO_DIRECTORY; |
| 574 | FiosGetFileList(fop, show_dirs, &FiosGetTownDataListCallback, subdir, file_list); |
| 575 | } |
| 576 | |
| 577 | /** |
| 578 | * Get the directory for screenshots. |
no test coverage detected