1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Rename DIRBASE and its members

This commit is contained in:
Gymnasiast
2025-03-25 22:27:57 +01:00
parent 0437329690
commit 622a8dc525
33 changed files with 123 additions and 123 deletions

View File

@@ -62,9 +62,9 @@ public:
: FileIndex(
"track design index", MAGIC_NUMBER, VERSION, env.GetFilePath(PATHID::CACHE_TRACKS), std::string(PATTERN),
std::vector<std::string>({
env.GetDirectoryPath(DIRBASE::RCT1, DIRID::TRACK),
env.GetDirectoryPath(DIRBASE::RCT2, DIRID::TRACK),
env.GetDirectoryPath(DIRBASE::USER, DIRID::TRACK),
env.GetDirectoryPath(DirBase::rct1, DIRID::TRACK),
env.GetDirectoryPath(DirBase::rct2, DIRID::TRACK),
env.GetDirectoryPath(DirBase::user, DIRID::TRACK),
}))
{
}
@@ -257,7 +257,7 @@ public:
std::string Install(const std::string& path, const std::string& name) override
{
std::string result;
std::string installDir = _env->GetDirectoryPath(DIRBASE::USER, DIRID::TRACK);
std::string installDir = _env->GetDirectoryPath(DirBase::user, DIRID::TRACK);
std::string newPath = Path::Combine(installDir, name + Path::GetExtension(path));
if (File::Copy(path, newPath, false))