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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user