mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
must... have... basedir... to... play...
This commit is contained in:
parent
78360393be
commit
954accc1c4
1 changed files with 15 additions and 4 deletions
|
@ -1092,10 +1092,21 @@ COM_Filesystem_Init (void)
|
|||
void
|
||||
COM_Filesystem_Init_Cvars (void)
|
||||
{
|
||||
int t = COM_CheckParm("-basedir");
|
||||
if (t && (t + 1) < com_argc)
|
||||
{
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", com_argv[t+1], CVAR_ROM,
|
||||
"location of shared (read only) game directories");
|
||||
fs_userpath = Cvar_Get ("fs_userpath", com_argv[t+1], CVAR_ROM,
|
||||
"location of your game directories");
|
||||
}
|
||||
else
|
||||
{
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH, CVAR_ROM,
|
||||
"location of shared (read only) game directories");
|
||||
fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM,
|
||||
"location of your game directories");
|
||||
}
|
||||
fs_basegame = Cvar_Get ("fs_basegame", BASEGAME, CVAR_ROM,
|
||||
"game to use by default");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue