summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
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];