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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user