mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
engine: host: execute server.cfg right before main loop starts
This commit is contained in:
parent
ce1fc386a2
commit
9b22149509
@ -1086,8 +1086,15 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
|
|||||||
oldtime = Sys_DoubleTime() - 0.1;
|
oldtime = Sys_DoubleTime() - 0.1;
|
||||||
|
|
||||||
if( Host_IsDedicated() && GameState->nextstate == STATE_RUNFRAME )
|
if( Host_IsDedicated() && GameState->nextstate == STATE_RUNFRAME )
|
||||||
|
{
|
||||||
Con_Printf( "type 'map <mapname>' to run server... (TAB-autocomplete is working too)\n" );
|
Con_Printf( "type 'map <mapname>' to run server... (TAB-autocomplete is working too)\n" );
|
||||||
|
|
||||||
|
// execute server.cfg after commandline
|
||||||
|
// so we have a chance to set servercfgfile
|
||||||
|
Cbuf_AddText( va( "exec %s\n", Cvar_VariableString( "servercfgfile" )));
|
||||||
|
Cbuf_Execute();
|
||||||
|
}
|
||||||
|
|
||||||
// main window message loop
|
// main window message loop
|
||||||
while( !host.crashed )
|
while( !host.crashed )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user