Let a separate libdir be specified for loading libraries.
Partially fixes Bugzilla #4271.
This commit is contained in:
parent
31ce89361d
commit
826f05f95f
3 changed files with 45 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue