Rename DIRBASE and its members

This commit is contained in:
Gymnasiast committed 2025-03-25 22:47:09 +01:00
1 parent 0437329690
commit 622a8dc525
33 files changed
+123 -123

No files matched your search

+3 -3
View File
@@ -86,8 +86,8 @@ public:
: FileIndex(
"object index", MAGIC_NUMBER, VERSION, env.GetFilePath(PATHID::CACHE_OBJECTS), std::string(PATTERN),
std::vector<std::string>{
env.GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::OBJECT),
env.GetDirectoryPath(DIRBASE::USER, DIRID::OBJECT),
env.GetDirectoryPath(DirBase::openrct2, DIRID::OBJECT),
env.GetDirectoryPath(DirBase::user, DIRID::OBJECT),
})
, _objectRepository(objectRepository)
{
@@ -586,7 +586,7 @@ private:
std::string GetPathForNewObject(ObjectGeneration generation, std::string_view name)
{
// Get object directory and create it if it doesn't exist
auto userObjPath = _env->GetDirectoryPath(DIRBASE::USER, DIRID::OBJECT);
auto userObjPath = _env->GetDirectoryPath(DirBase::user, DIRID::OBJECT);
Path::CreateDirectory(userObjPath);
// Find a unique file name