aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:32:05 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:32:05 +0000
commit9f15eaa7aeb735f71390e9b86bee4291d72edd44 (patch)
tree711f04699e5195a01e3824bebde0086af17a2d3b /code/qcommon
parentc6b984cf26aa109656433dd274d33146e44b741e (diff)
downloadioquake3-aero-9f15eaa7aeb735f71390e9b86bee4291d72edd44.tar.gz
ioquake3-aero-9f15eaa7aeb735f71390e9b86bee4291d72edd44.zip
Let a separate libdir be specified for loading libraries.
Partially fixes Bugzilla #4271. git-svn-id: svn://svn.icculus.org/quake3/trunk@1626 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/files.c3
-rw-r--r--code/qcommon/qcommon.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c
index 7bbfc45..0728267 100644
--- a/code/qcommon/files.c
+++ b/code/qcommon/files.c
@@ -241,6 +241,7 @@ static cvar_t *fs_apppath;
#endif
static cvar_t *fs_basepath;
+static cvar_t *fs_libpath;
static cvar_t *fs_basegame;
static cvar_t *fs_gamedirvar;
static searchpath_t *fs_searchpaths;
@@ -2761,6 +2762,8 @@ static void FS_Startup( const char *gameName )
fs_debug = Cvar_Get( "fs_debug", "0", 0 );
fs_basepath = Cvar_Get ("fs_basepath", Sys_DefaultInstallPath(), CVAR_INIT );
fs_basegame = Cvar_Get ("fs_basegame", "", CVAR_INIT );
+ fs_libpath = Cvar_Get ("fs_libpath", Sys_DefaultLibPath(), CVAR_INIT );
+
homePath = Sys_DefaultHomePath();
if (!homePath || !homePath[0]) {
homePath = fs_basepath->string;
diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h
index a2d8106..1c970e6 100644
--- a/code/qcommon/qcommon.h
+++ b/code/qcommon/qcommon.h
@@ -1079,6 +1079,9 @@ char *Sys_DefaultInstallPath(void);
char *Sys_DefaultAppPath(void);
#endif
+void Sys_SetDefaultLibPath(const char *path);
+char *Sys_DefaultLibPath(void);
+
void Sys_SetDefaultHomePath(const char *path);
char *Sys_DefaultHomePath(void);
const char *Sys_Dirname( char *path );