]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
renamed QUAKEWORLD protocol to QW to shorten connect string
[xonotic/darkplaces.git] / sys_shared.c
index f37b67a4407452b4bb7ce8667c1ba2dc9aba019a..f636ff310285ba8a06405f31e96b9f58ba3b271b 100644 (file)
@@ -17,11 +17,11 @@ char *Sys_TimeString(const char *timeformat)
 
 
 extern qboolean host_shuttingdown;
-void Sys_Quit (void)
+void Sys_Quit (int returnvalue)
 {
        host_shuttingdown = true;
        Host_Shutdown();
-       exit(0);
+       exit(returnvalue);
 }
 
 /*
@@ -53,7 +53,7 @@ qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllf
 #ifdef WIN32
                dllhandle = LoadLibrary (dllnames[i]);
 #else
-               dllhandle = dlopen (dllnames[i], RTLD_LAZY);
+               dllhandle = dlopen (dllnames[i], RTLD_LAZY | RTLD_GLOBAL);
 #endif
                if (dllhandle)
                        break;
@@ -75,7 +75,7 @@ qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllf
 #ifdef WIN32
                        dllhandle = LoadLibrary (temp);
 #else
-                       dllhandle = dlopen (temp, RTLD_LAZY);
+                       dllhandle = dlopen (temp, RTLD_LAZY | RTLD_GLOBAL);
 #endif
                        if (dllhandle)
                                break;