Codechange: make AbstractFileType a scoped enum

This commit is contained in:
Peter Nelson
2026-04-05 21:46:07 +01:00
committed by Peter Nelson
parent c3f1372d74
commit 74b0b080e7
13 changed files with 87 additions and 87 deletions
+5 -5
View File
@@ -60,22 +60,22 @@ void FileList::BuildFileList(AbstractFileType abstract_filetype, SaveLoadOperati
assert(fop == SLO_LOAD || fop == SLO_SAVE);
switch (abstract_filetype) {
case FT_NONE:
case AbstractFileType::None:
break;
case FT_SAVEGAME:
case AbstractFileType::Savegame:
FiosGetSavegameList(fop, show_dirs, *this);
break;
case FT_SCENARIO:
case AbstractFileType::Scenario:
FiosGetScenarioList(fop, show_dirs, *this);
break;
case FT_HEIGHTMAP:
case AbstractFileType::Heightmap:
FiosGetHeightmapList(fop, show_dirs, *this);
break;
case FT_TOWN_DATA:
case AbstractFileType::TownData:
FiosGetTownDataList(fop, show_dirs, *this);
break;