* Callback for FiosGetTownDataList. * @param fop Purpose of collecting the list. * @param file Name of the file to check. * @return a FIOS_TYPE_JSON type of the found file, FIOS_TYPE_INVALID if not a valid JSON file, and the title of the file (if any). */
| 545 | * @return a FIOS_TYPE_JSON type of the found file, FIOS_TYPE_INVALID if not a valid JSON file, and the title of the file (if any). |
| 546 | */ |
| 547 | static std::tuple<FiosType, std::string> FiosGetTownDataListCallback(SaveLoadOperation fop, std::string_view file, std::string_view ext) |
| 548 | { |
| 549 | if (fop == SLO_LOAD) { |
| 550 | if (StrEqualsIgnoreCase(ext, ".json")) { |
| 551 | return { FIOS_TYPE_JSON, GetFileTitle(file, SAVE_DIR) }; |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | return { FIOS_TYPE_INVALID, {} }; |
| 556 | } |
| 557 | |
| 558 | /** |
| 559 | * Get a list of town data files. |
nothing calls this directly
no test coverage detected