1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +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

@@ -459,7 +459,7 @@ namespace OpenRCT2
{
return false;
}
_env->SetBasePath(DIRBASE::RCT2, rct2InstallPath);
_env->SetBasePath(DirBase::rct2, rct2InstallPath);
}
// The repositories are all dependent on the RCT2 path being set,
@@ -1429,7 +1429,7 @@ namespace OpenRCT2
void EnsureUserContentDirectoriesExist()
{
EnsureDirectoriesExist(
DIRBASE::USER,
DirBase::user,
{
DIRID::OBJECT,
DIRID::SAVE,
@@ -1446,7 +1446,7 @@ namespace OpenRCT2
});
}
void EnsureDirectoriesExist(const DIRBASE dirBase, const std::initializer_list<DIRID>& dirIds)
void EnsureDirectoriesExist(const DirBase dirBase, const std::initializer_list<DIRID>& dirIds)
{
for (const auto& dirId : dirIds)
{
@@ -1467,8 +1467,8 @@ namespace OpenRCT2
void CopyOriginalUserFilesOver(DIRID dirid, const std::string& pattern)
{
auto src = _env->GetDirectoryPath(DIRBASE::RCT2, dirid);
auto dst = _env->GetDirectoryPath(DIRBASE::USER, dirid);
auto src = _env->GetDirectoryPath(DirBase::rct2, dirid);
auto dst = _env->GetDirectoryPath(DirBase::user, dirid);
CopyOriginalUserFilesOver(src, dst, pattern);
}