]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
do not copypaste zlib
[xonotic/netradiant.git] / radiant / mainframe.cpp
index dd91a26868c6d05e68610fb9f7cb067bf77b61f4..0e430f11c634a87b6298e64edb86cd72c4e97e37 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 )
@@ -530,7 +532,9 @@ void operator()( const char* name ) const {
 };
 
 const char* const c_library_extension =
-#if defined( WIN32 )
+#if defined( CMAKE_SHARED_MODULE_SUFFIX )
+    CMAKE_SHARED_MODULE_SUFFIX
+#elif defined( WIN32 )
        "dll"
 #elif defined ( __APPLE__ )
        "dylib"
@@ -3324,10 +3328,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