mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-22 18:49:40 +00:00
Codechange: make Subdirectory a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
93a6aa77c6
commit
5aae8e2d64
+2
-2
@@ -155,7 +155,7 @@ private:
|
||||
public:
|
||||
ConfigIniFile(const std::string &filename) : IniFile(list_group_names)
|
||||
{
|
||||
this->LoadFromDisk(filename, NO_DIRECTORY);
|
||||
this->LoadFromDisk(filename, Subdirectory::None);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1096,7 +1096,7 @@ static GRFConfigList GRFLoadConfig(const IniFile &ini, std::string_view grpname,
|
||||
const GRFConfig *s = FindGRFConfig(grfid, FGCM_EXACT, &md5sum);
|
||||
if (s != nullptr) c = std::make_unique<GRFConfig>(*s);
|
||||
}
|
||||
if (c == nullptr && !FioCheckFileExists(std::string(item_name), NEWGRF_DIR)) {
|
||||
if (c == nullptr && !FioCheckFileExists(std::string(item_name), Subdirectory::NewGrf)) {
|
||||
const GRFConfig *s = FindGRFConfig(grfid, FGCM_NEWEST_VALID);
|
||||
if (s != nullptr) c = std::make_unique<GRFConfig>(*s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user