must... have... basedir... to... play...

This commit is contained in:
Forest Hale 2000-12-11 14:47:33 +00:00
parent 78360393be
commit 954accc1c4

View file

@ -1092,10 +1092,21 @@ COM_Filesystem_Init (void)
void void
COM_Filesystem_Init_Cvars (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, fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH, CVAR_ROM,
"location of shared (read only) game directories"); "location of shared (read only) game directories");
fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM, fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM,
"location of your game directories"); "location of your game directories");
}
fs_basegame = Cvar_Get ("fs_basegame", BASEGAME, CVAR_ROM, fs_basegame = Cvar_Get ("fs_basegame", BASEGAME, CVAR_ROM,
"game to use by default"); "game to use by default");
} }