Codechange: make Subdirectory a scoped enum

This commit is contained in:
Peter Nelson
2026-04-05 21:46:07 +01:00
committed by Peter Nelson
parent 93a6aa77c6
commit 5aae8e2d64
52 changed files with 218 additions and 216 deletions
+2 -2
View File
@@ -510,7 +510,7 @@ public:
}
GRFFileScanner fs;
int ret = fs.Scan(".grf", NEWGRF_DIR);
int ret = fs.Scan(".grf", Subdirectory::NewGrf);
/* The number scanned and the number returned may not be the same;
* duplicate NewGRFs and base sets are ignored in the return value. */
_settings_client.gui.last_newgrf_count = fs.num_scanned;
@@ -654,5 +654,5 @@ std::string GRFBuildParamList(const GRFConfig &c)
*/
std::optional<std::string> GRFConfig::GetTextfile(TextfileType type) const
{
return ::GetTextfile(type, NEWGRF_DIR, this->filename);
return ::GetTextfile(type, Subdirectory::NewGrf, this->filename);
}