]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Try ~/.{prefix} on Apple OS X if /Library/Application Support/{prefix+1} fails.
authorJay Dolan <jay@jaydolan.com>
Sun, 15 Feb 2015 15:13:20 +0000 (10:13 -0500)
committerJay Dolan <jay@jaydolan.com>
Sun, 15 Feb 2015 15:13:20 +0000 (10:13 -0500)
radiant/mainframe.cpp

index abb12ef658711518d79e1cd444b59dbdc337ac56..a9c970723648708e88cf2b54ecb2074605e29566 100644 (file)
@@ -200,6 +200,8 @@ void HomePaths_Realise(){
                                g_qeglobals.m_userEnginePath = path.c_str();
                                break;
                        }
+                       path.clear();
+                       path << DirectoryCleaned( g_get_home_dir() ) << prefix << "/";
 #endif
 
 #if defined( WIN32 )
@@ -3324,10 +3326,10 @@ void MainFrame_Construct(){
                const char* ENGINEPATH_ATTRIBUTE =
 #if defined( WIN32 )
                        "enginepath_win32"
-#elif defined( __linux__ ) || defined ( __FreeBSD__ )
-                       "enginepath_linux"
 #elif defined( __APPLE__ )
                        "enginepath_macos"
+#elif defined( __linux__ ) || defined ( __FreeBSD__ )
+                       "enginepath_linux"
 #else
 #error "unknown platform"
 #endif