Don't search system directories for renderer lib
This commit is contained in:
1 parent
5a1449bd51
commit
404fe4e6e0
5 files changed
+10
-8
No files matched your search
+5
-3
@@ -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;
|
||||
|
||||
Com_Printf("Try loading \"%s\"...\n", name);
|
||||
if(!(dllhandle = Sys_LoadLibrary(name)))
|
||||
if(useSystemLib)
|
||||
Com_Printf("Try loading \"%s\"...\n", name);
|
||||
|
||||
if(!useSystemLib || !(dllhandle = Sys_LoadLibrary(name)))
|
||||
{
|
||||
const char *topDir;
|
||||
char libPath[MAX_OSPATH];
|
||||
|
||||
Reference in new issue
Block a user