mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: make Subdirectory a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
93a6aa77c6
commit
5aae8e2d64
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user