Rename SPECIAL_FOLDER and its members

This commit is contained in:
Gymnasiast committed 2025-03-26 12:06:31 +01:00
1 parent c7d38b29fc
commit 5b7793f77b
7 files changed
+36 -36

No files matched your search

+6 -6
View File
@@ -77,23 +77,23 @@ namespace OpenRCT2::Platform
}
}
std::string GetFolderPath(SPECIAL_FOLDER folder)
std::string GetFolderPath(SpecialFolder folder)
{
switch (folder)
{
case SPECIAL_FOLDER::USER_CACHE:
case SPECIAL_FOLDER::USER_CONFIG:
case SPECIAL_FOLDER::USER_DATA:
case SpecialFolder::userCache:
case SpecialFolder::userConfig:
case SpecialFolder::userData:
{
auto path = GetEnvironmentPath("XDG_CONFIG_HOME");
if (path.empty())
{
auto home = GetFolderPath(SPECIAL_FOLDER::USER_HOME);
auto home = GetFolderPath(SpecialFolder::userHome);
path = Path::Combine(home, u8".config");
}
return path;
}
case SPECIAL_FOLDER::USER_HOME:
case SpecialFolder::userHome:
return GetHomePath();
default:
return std::string();