mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
* Write q3config_server.cfg for the server, to avoid reseting client variables
after running a dedicated server
This commit is contained in:
parent
fd69a32508
commit
e31156e586
3 changed files with 9 additions and 3 deletions
|
@ -2537,7 +2537,7 @@ void Com_Init( char *commandLine ) {
|
|||
|
||||
// skip the q3config.cfg if "safe" is on the command line
|
||||
if ( !Com_SafeMode() ) {
|
||||
Cbuf_AddText ("exec q3config.cfg\n");
|
||||
Cbuf_AddText ("exec " Q3CONFIG_CFG "\n");
|
||||
}
|
||||
|
||||
Cbuf_AddText ("exec autoexec.cfg\n");
|
||||
|
@ -2690,7 +2690,7 @@ void Com_WriteConfiguration( void ) {
|
|||
}
|
||||
cvar_modifiedFlags &= ~CVAR_ARCHIVE;
|
||||
|
||||
Com_WriteConfigToFile( "q3config.cfg" );
|
||||
Com_WriteConfigToFile( Q3CONFIG_CFG );
|
||||
|
||||
// not needed for dedicated
|
||||
#ifndef DEDICATED
|
||||
|
|
|
@ -3317,7 +3317,7 @@ void FS_Restart( int checksumFeed ) {
|
|||
if ( Q_stricmp(fs_gamedirvar->string, lastValidGame) ) {
|
||||
// skip the q3config.cfg if "safe" is on the command line
|
||||
if ( !Com_SafeMode() ) {
|
||||
Cbuf_AddText ("exec q3config.cfg\n");
|
||||
Cbuf_AddText ("exec " Q3CONFIG_CFG "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -536,6 +536,12 @@ issues.
|
|||
|
||||
#define MAX_FILE_HANDLES 64
|
||||
|
||||
#ifdef DEDICATED
|
||||
# define Q3CONFIG_CFG "q3config_server.cfg"
|
||||
#else
|
||||
# define Q3CONFIG_CFG "q3config.cfg"
|
||||
#endif
|
||||
|
||||
qboolean FS_Initialized( void );
|
||||
|
||||
void FS_InitFilesystem ( void );
|
||||
|
|
Loading…
Reference in a new issue