From: Jay Dolan Date: Sun, 15 Feb 2015 15:13:20 +0000 (-0500) Subject: Try ~/.{prefix} on Apple OS X if /Library/Application Support/{prefix+1} fails. X-Git-Tag: xonotic-v0.8.1~2^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c359b728f63d9fe2adc84f88ec36639e61a4a05a;p=xonotic%2Fnetradiant.git Try ~/.{prefix} on Apple OS X if /Library/Application Support/{prefix+1} fails. --- diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index abb12ef6..a9c97072 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -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