From c359b728f63d9fe2adc84f88ec36639e61a4a05a Mon Sep 17 00:00:00 2001 From: Jay Dolan Date: Sun, 15 Feb 2015 10:13:20 -0500 Subject: [PATCH] Try ~/.{prefix} on Apple OS X if /Library/Application Support/{prefix+1} fails. --- radiant/mainframe.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2