extern qboolean host_shuttingdown;
-void Sys_Quit (void)
+void Sys_Quit (int returnvalue)
{
host_shuttingdown = true;
Host_Shutdown();
- exit(0);
+ exit(returnvalue);
}
/*
#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;
#ifdef WIN32
dllhandle = LoadLibrary (temp);
#else
- dllhandle = dlopen (temp, RTLD_LAZY);
+ dllhandle = dlopen (temp, RTLD_LAZY | RTLD_GLOBAL);
#endif
if (dllhandle)
break;