mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
command line now overrides what's in the config file
This commit is contained in:
parent
1c81f61d0d
commit
3594de9738
3 changed files with 8 additions and 8 deletions
|
@ -1710,6 +1710,9 @@ void Host_Init (quakeparms_t *parms)
|
|||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute ();
|
||||
|
||||
V_Init ();
|
||||
CL_InitCvars ();
|
||||
SCR_InitCvars ();
|
||||
|
@ -1721,12 +1724,6 @@ void 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");
|
||||
|
||||
Host_FixupModelNames();
|
||||
|
||||
NET_Init (PORT_CLIENT);
|
||||
|
|
|
@ -1052,10 +1052,10 @@ COM_InitFilesystem ( void )
|
|||
int i;
|
||||
#endif
|
||||
|
||||
fs_basepath = Cvar_Get ("fs_basepath", FS_USERPATH, CVAR_NONE,
|
||||
fs_basepath = Cvar_Get ("fs_basepath", FS_USERPATH, CVAR_ROM,
|
||||
"the location of your game directories");
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH,
|
||||
CVAR_NONE, "read-only game directories");
|
||||
CVAR_ROM, "read-only game directories");
|
||||
Cmd_AddCommand ("gamedir", COM_Gamedir_f);
|
||||
|
||||
/*
|
||||
|
|
|
@ -1875,6 +1875,9 @@ void SV_Init (quakeparms_t *parms)
|
|||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute ();
|
||||
|
||||
COM_Init ();
|
||||
|
||||
PR_Init ();
|
||||
|
|
Loading…
Reference in a new issue