mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
move +set handling as early as possible
This commit is contained in:
parent
8a65ae8ca9
commit
f29bffb2ff
1 changed files with 7 additions and 10 deletions
|
@ -535,25 +535,24 @@ Host_Init (quakeparms_t *parms)
|
|||
|
||||
COM_InitArgv (parms->argc, parms->argv);
|
||||
|
||||
#if 0
|
||||
//#ifdef QUAKEWORLD
|
||||
COM_AddParm ("-game");
|
||||
COM_AddParm ("qw");
|
||||
Sys_mkdir("qw");
|
||||
#endif
|
||||
|
||||
if ( COM_CheckParm ("-minmemory") )
|
||||
parms->memsize = MINIMUM_MEMORY;
|
||||
|
||||
host_parms = *parms;
|
||||
|
||||
if (parms->memsize < MINIMUM_MEMORY)
|
||||
Sys_Error ("Only %4.1fMB of memory reported, can't execute game", parms->memsize / (float) 0x100000);
|
||||
Sys_Error ("Only %4.1fMB of memory reported, can't execute game",
|
||||
parms->memsize / (float) 0x100000);
|
||||
|
||||
Memory_Init (parms->membase, parms->memsize);
|
||||
Cbuf_Init ();
|
||||
Cmd_Init ();
|
||||
Cvar_Init ();
|
||||
|
||||
// execute +set as early as possible
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
CL_InitCvars ();
|
||||
SCR_InitCvars ();
|
||||
VID_InitCvars ();
|
||||
|
@ -563,9 +562,7 @@ Host_Init (quakeparms_t *parms)
|
|||
Cbuf_InsertText ((char *)globalcfg);
|
||||
}
|
||||
|
||||
// FIXME: stuff only +set here, shouldn't stuff all commands --KB
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute_Sets ();
|
||||
Cbuf_Execute ();
|
||||
|
||||
V_Init ();
|
||||
|
|
Loading…
Reference in a new issue