mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-24 21:01:17 +00:00
delay setting the CVAR_ROM bit for fs_*path so they can be overridden by the command line
This commit is contained in:
parent
2f21a6b276
commit
10224b1d00
2 changed files with 9 additions and 2 deletions
|
@ -53,6 +53,7 @@
|
|||
#include <sbar.h>
|
||||
#include <mathlib.h>
|
||||
#include <menu.h>
|
||||
#include <cvars.h>
|
||||
#ifdef QUAKEWORLD
|
||||
#include <cl_slist.h>
|
||||
#endif
|
||||
|
@ -577,6 +578,12 @@ Host_Init (quakeparms_t *parms)
|
|||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute ();
|
||||
|
||||
// make these read-only
|
||||
fs_basepath = Cvar_Get ("fs_basepath", fs_basepath->string, CVAR_ROM,
|
||||
"the location of your game directories");
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", fs_sharepath->string,
|
||||
CVAR_ROM, "read-only game directories");
|
||||
|
||||
V_Init ();
|
||||
Chase_Init ();
|
||||
|
||||
|
|
|
@ -983,10 +983,10 @@ COM_InitFilesystem ( void )
|
|||
int i;
|
||||
#endif
|
||||
|
||||
fs_basepath = Cvar_Get ("fs_basepath", FS_BASEPATH, CVAR_ROM,
|
||||
fs_basepath = Cvar_Get ("fs_basepath", FS_BASEPATH, CVAR_NONE,
|
||||
"the location of your game directories");
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", fs_basepath->string,
|
||||
CVAR_ROM, "read-only game directories");
|
||||
CVAR_NONE, "read-only game directories");
|
||||
Cmd_AddCommand ("gamedir", COM_Gamedir_f);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue