Don't search system directories for renderer lib

This commit is contained in:
Thilo Schulz 2011-08-01 09:33:48 +00:00
parent 5a1449bd51
commit 404fe4e6e0
5 changed files with 10 additions and 8 deletions

View file

@ -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];