diff --git a/src/fios.cpp b/src/fios.cpp --- a/src/fios.cpp +++ b/src/fios.cpp @@ -447,9 +447,6 @@ std::tuple FiosGe * .SV1 Transport Tycoon Deluxe (Patch) saved game * .SV2 Transport Tycoon Deluxe (Patch) saved 2-player game */ - /* Don't crash if we supply no extension */ - if (ext.empty()) return { FIOS_TYPE_INVALID, {} }; - if (StrEqualsIgnoreCase(ext, ".sav")) { return { FIOS_TYPE_FILE, GetFileTitle(file, SAVE_DIR) }; } @@ -490,7 +487,7 @@ void FiosGetSavegameList(SaveLoadOperati * @see FiosGetFileList * @see FiosGetScenarioList */ -static std::tuple FiosGetScenarioListCallback(SaveLoadOperation fop, const std::string &file, const std::string_view ext) +std::tuple FiosGetScenarioListCallback(SaveLoadOperation fop, const std::string &file, const std::string_view ext) { /* Show scenario files * .SCN OpenTTD style scenario file @@ -530,7 +527,7 @@ void FiosGetScenarioList(SaveLoadOperati FiosGetFileList(fop, &FiosGetScenarioListCallback, subdir, file_list); } -static std::tuple FiosGetHeightmapListCallback(SaveLoadOperation, const std::string &file, const std::string_view ext) +std::tuple FiosGetHeightmapListCallback(SaveLoadOperation, const std::string &file, const std::string_view ext) { /* Show heightmap files * .PNG PNG Based heightmap files