1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Rename SPECIAL_FOLDER and its members

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

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();