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

@@ -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