Merge remote-tracking branch 'origin/master' into 1.12
# Conflicts: # Content/Shaders/GI/DDGI.flax # Content/Shaders/GUI.flax # Flax.flaxproj # Source/Editor/Windows/AboutDialog.cs # Source/Engine/Serialization/Stream.cpp # Source/Shaders/GUICommon.hlsl
This commit is contained in:
@@ -83,17 +83,19 @@ void AppleFileSystem::GetSpecialFolderPath(const SpecialFolder type, String& res
|
||||
switch (type)
|
||||
{
|
||||
case SpecialFolder::Desktop:
|
||||
result = home / TEXT("/Desktop");
|
||||
result = home / TEXT("/Desktop"); // TODO: should be NSDesktopDirectory
|
||||
break;
|
||||
case SpecialFolder::Documents:
|
||||
result = home / TEXT("/Documents");
|
||||
result = home / TEXT("/Documents"); // TODO: should be NSDocumentDirectory
|
||||
break;
|
||||
case SpecialFolder::Pictures:
|
||||
result = home / TEXT("/Pictures");
|
||||
result = home / TEXT("/Pictures"); // TODO: should be NSPicturesDirectory
|
||||
break;
|
||||
case SpecialFolder::AppData:
|
||||
result = home / TEXT("/Library/Application Support"); // TODO: should be NSApplicationSupportDirectory
|
||||
break;
|
||||
case SpecialFolder::LocalAppData:
|
||||
result = home / TEXT("/Library/Caches");
|
||||
result = home / TEXT("/Library/Caches"); // TODO: should be NSApplicationSupportDirectory
|
||||
break;
|
||||
case SpecialFolder::ProgramData:
|
||||
result = home / TEXT("/Library/Application Support");
|
||||
|
||||
@@ -338,17 +338,35 @@ void LinuxFileSystem::GetSpecialFolderPath(const SpecialFolder type, String& res
|
||||
switch (type)
|
||||
{
|
||||
case SpecialFolder::Desktop:
|
||||
result = home / TEXT("Desktop");
|
||||
{
|
||||
String desktopDir;
|
||||
if (!Platform::GetEnvironmentVariable(TEXT("XDG_DESKTOP_DIR"), desktopDir))
|
||||
result = desktopDir;
|
||||
else
|
||||
result = home / TEXT("Desktop");
|
||||
break;
|
||||
}
|
||||
case SpecialFolder::Documents:
|
||||
result = String::Empty;
|
||||
break;
|
||||
case SpecialFolder::Pictures:
|
||||
result = home / TEXT("Pictures");
|
||||
{
|
||||
String picturesDir;
|
||||
if (!Platform::GetEnvironmentVariable(TEXT("XDG_PICTURES_DIR"), picturesDir))
|
||||
result = picturesDir;
|
||||
else
|
||||
result = home / TEXT("Pictures");
|
||||
break;
|
||||
}
|
||||
case SpecialFolder::AppData:
|
||||
result = TEXT("/usr/share");
|
||||
{
|
||||
String configHome;
|
||||
if (!Platform::GetEnvironmentVariable(TEXT("XDG_CONFIG_HOME"), configHome))
|
||||
result = configHome;
|
||||
else
|
||||
result = home / TEXT(".config");
|
||||
break;
|
||||
}
|
||||
case SpecialFolder::LocalAppData:
|
||||
{
|
||||
String dataHome;
|
||||
|
||||
Reference in New Issue
Block a user