aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-17 22:06:51 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-17 22:06:51 +0000
commit522941febb1d96a7e347af6d9bab893b51e2f606 (patch)
tree56383f4f46505e0c674fc872e196ab4aa3a9fa08 /code/sys
parent8ba8c9867664de1c90f8889cf9c2c5498a324a15 (diff)
downloadioquake3-aero-522941febb1d96a7e347af6d9bab893b51e2f606.tar.gz
ioquake3-aero-522941febb1d96a7e347af6d9bab893b51e2f606.zip
Don't look for DLLs on current working directory anymore, for security reasons.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1675 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sys')
-rw-r--r--code/sys/sys_main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c
index ff58187..3d5c3d4 100644
--- a/code/sys/sys_main.c
+++ b/code/sys/sys_main.c
@@ -381,9 +381,8 @@ static void* Sys_TryLibraryLoad(const char* base, const char* gamedir, const cha
Sys_LoadDll
Used to load a development dll instead of a virtual machine
-#1 look down current path
-#2 look in fs_homepath
-#3 look in fs_basepath
+#1 look in fs_homepath
+#2 look in fs_basepath
=================
*/
void *Sys_LoadDll( const char *name, char *fqpath ,
@@ -395,7 +394,6 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
char fname[MAX_OSPATH];
char *basepath;
char *homepath;
- char *pwdpath;
char *gamedir;
assert( name );
@@ -403,15 +401,11 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
Q_snprintf (fname, sizeof(fname), "%s" ARCH_STRING DLL_EXT, name);
// TODO: use fs_searchpaths from files.c
- pwdpath = Sys_Cwd();
basepath = Cvar_VariableString( "fs_basepath" );
homepath = Cvar_VariableString( "fs_homepath" );
gamedir = Cvar_VariableString( "fs_game" );
- libHandle = Sys_TryLibraryLoad(pwdpath, gamedir, fname, fqpath);
-
- if(!libHandle && homepath)
- libHandle = Sys_TryLibraryLoad(homepath, gamedir, fname, fqpath);
+ libHandle = Sys_TryLibraryLoad(homepath, gamedir, fname, fqpath);
if(!libHandle && basepath)
libHandle = Sys_TryLibraryLoad(basepath, gamedir, fname, fqpath);