summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-08-01 09:33:48 +0000
committerTim Angus <tim@ngus.net>2013-01-10 23:11:06 +0000
commitc039c00ca0fe051f8ed243c08d238e739027cb76 (patch)
treed69a37fa483309ffe3bb3adfd81caef90eb4189c /src/sys
parent9947b9b323b4b453dbb13dc808776c32de640a6b (diff)
Don't search system directories for renderer lib
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_loadlib.h2
-rw-r--r--src/sys/sys_main.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/sys/sys_loadlib.h b/src/sys/sys_loadlib.h
index 513b7d6c..0887f575 100644
--- a/src/sys/sys_loadlib.h
+++ b/src/sys/sys_loadlib.h
@@ -49,4 +49,4 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# define Sys_LibraryError() SDL_GetError()
#endif
-void * QDECL Sys_LoadDll(const char *name);
+void * QDECL Sys_LoadDll(const char *name, qboolean useSystemLib);
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index 1ee40897..b46e0d20 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -418,12 +418,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];