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
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue