mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Don't search system directories for renderer lib
This commit is contained in:
parent
5a1449bd51
commit
404fe4e6e0
5 changed files with 10 additions and 8 deletions
|
@ -94,11 +94,11 @@ qboolean CL_cURL_Init()
|
||||||
|
|
||||||
|
|
||||||
Com_Printf("Loading \"%s\"...", cl_cURLLib->string);
|
Com_Printf("Loading \"%s\"...", cl_cURLLib->string);
|
||||||
if(!(cURLLib = Sys_LoadDll(cl_cURLLib->string)))
|
if(!(cURLLib = Sys_LoadDll(cl_cURLLib->string, qtrue)))
|
||||||
{
|
{
|
||||||
#ifdef ALTERNATE_CURL_LIB
|
#ifdef ALTERNATE_CURL_LIB
|
||||||
// On some linux distributions there is no libcurl.so.3, but only libcurl.so.4. That one works too.
|
// On some linux distributions there is no libcurl.so.3, but only libcurl.so.4. That one works too.
|
||||||
if(!(cURLLib = Sys_LoadDll(ALTERNATE_CURL_LIB)))
|
if(!(cURLLib = Sys_LoadDll(ALTERNATE_CURL_LIB, qtrue)))
|
||||||
#endif
|
#endif
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3182,7 +3182,7 @@ void CL_InitRef( void ) {
|
||||||
|
|
||||||
Com_sprintf(dllName, sizeof(dllName), "renderer_%s_" ARCH_STRING DLL_EXT, cl_renderer->string);
|
Com_sprintf(dllName, sizeof(dllName), "renderer_%s_" ARCH_STRING DLL_EXT, cl_renderer->string);
|
||||||
|
|
||||||
if(!(rendererLib = Sys_LoadDll(dllName)) && strcmp(cl_renderer->string, cl_renderer->resetString))
|
if(!(rendererLib = Sys_LoadDll(dllName, qfalse)) && strcmp(cl_renderer->string, cl_renderer->resetString))
|
||||||
{
|
{
|
||||||
Cvar_ForceReset("cl_renderer");
|
Cvar_ForceReset("cl_renderer");
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ qboolean QAL_Init(const char *libname)
|
||||||
if(OpenALLib)
|
if(OpenALLib)
|
||||||
return qtrue;
|
return qtrue;
|
||||||
|
|
||||||
if(!(OpenALLib = Sys_LoadDll(libname)))
|
if(!(OpenALLib = Sys_LoadDll(libname, qtrue)))
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
|
||||||
alinit_fail = qfalse;
|
alinit_fail = qfalse;
|
||||||
|
|
|
@ -48,4 +48,4 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
# define Sys_LibraryError() SDL_GetError()
|
# define Sys_LibraryError() SDL_GetError()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void * QDECL Sys_LoadDll(const char *name);
|
void * QDECL Sys_LoadDll(const char *name, qboolean useSystemLib);
|
||||||
|
|
|
@ -417,12 +417,14 @@ from executable path, then fs_basepath.
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *Sys_LoadDll(const char *name)
|
void *Sys_LoadDll(const char *name, qboolean useSystemLib)
|
||||||
{
|
{
|
||||||
void *dllhandle;
|
void *dllhandle;
|
||||||
|
|
||||||
Com_Printf("Try loading \"%s\"...\n", name);
|
if(useSystemLib)
|
||||||
if(!(dllhandle = Sys_LoadLibrary(name)))
|
Com_Printf("Try loading \"%s\"...\n", name);
|
||||||
|
|
||||||
|
if(!useSystemLib || !(dllhandle = Sys_LoadLibrary(name)))
|
||||||
{
|
{
|
||||||
const char *topDir;
|
const char *topDir;
|
||||||
char libPath[MAX_OSPATH];
|
char libPath[MAX_OSPATH];
|
||||||
|
|
Loading…
Reference in a new issue