mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
allow commands other than set to be executed from ~/.quakeforgerc
This commit is contained in:
parent
4cd29c2ff8
commit
d62ac62ff5
3 changed files with 5 additions and 5 deletions
|
@ -985,15 +985,14 @@ Host_Init (quakeparms_t *parms)
|
||||||
CL_Init ();
|
CL_Init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Cbuf_InsertText ("exec quake.rc\n");
|
||||||
|
Cmd_Exec_File (fs_usercfg->string);
|
||||||
// reparse the command line for + commands other than set
|
// reparse the command line for + commands other than set
|
||||||
// (sets still done, but it doesn't matter)
|
// (sets still done, but it doesn't matter)
|
||||||
if (check_quakerc ()) {
|
if (check_quakerc ()) {
|
||||||
Cmd_StuffCmds_f ();
|
Cmd_StuffCmds_f ();
|
||||||
Cbuf_Execute ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cbuf_InsertText ("exec quake.rc\n");
|
|
||||||
|
|
||||||
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
||||||
host_hunklevel = Hunk_LowMark ();
|
host_hunklevel = Hunk_LowMark ();
|
||||||
|
|
||||||
|
|
|
@ -1674,14 +1674,14 @@ Host_Init (void)
|
||||||
IN_Init ();
|
IN_Init ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Cbuf_InsertText ("exec quake.rc\n");
|
||||||
|
Cmd_Exec_File (fs_usercfg->string);
|
||||||
// Reparse the command line for + commands.
|
// Reparse the command line for + commands.
|
||||||
// (Note, no non-base commands exist yet)
|
// (Note, no non-base commands exist yet)
|
||||||
if (check_quakerc ()) {
|
if (check_quakerc ()) {
|
||||||
Cmd_StuffCmds_f ();
|
Cmd_StuffCmds_f ();
|
||||||
Cbuf_Execute ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cbuf_InsertText ("exec quake.rc\n");
|
|
||||||
Cbuf_AddText
|
Cbuf_AddText
|
||||||
("echo Type connect <internet address> or use a server browser to connect to a game.\n");
|
("echo Type connect <internet address> or use a server browser to connect to a game.\n");
|
||||||
Cbuf_AddText ("cl_warncmd 1\n");
|
Cbuf_AddText ("cl_warncmd 1\n");
|
||||||
|
|
|
@ -1976,6 +1976,7 @@ SV_Init (void)
|
||||||
Con_Printf ("<==> %s initialized <==>\n", PROGRAM);
|
Con_Printf ("<==> %s initialized <==>\n", PROGRAM);
|
||||||
|
|
||||||
// process command line arguments
|
// process command line arguments
|
||||||
|
Cmd_Exec_File (fs_usercfg->string);
|
||||||
Cmd_StuffCmds_f ();
|
Cmd_StuffCmds_f ();
|
||||||
Cbuf_Execute ();
|
Cbuf_Execute ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue