1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Rename DIRID and its members

This commit is contained in:
Gymnasiast
2025-03-25 23:39:27 +01:00
parent 9567892940
commit 14b881e22b
27 changed files with 101 additions and 100 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::objects),
env.GetDirectoryPath(DirBase::user, DirId::objects),
})
, _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::objects);
Path::CreateDirectory(userObjPath);
// Find a unique file name