@ -1423,15 +1423,11 @@ save serverinfo variables into server.cfg (using for dedicated server too)
@@ -1423,15 +1423,11 @@ save serverinfo variables into server.cfg (using for dedicated server too)
*/
void GAME_EXPORT Host_WriteServerConfig ( const char * name )
{
qboolean already_loaded ;
file_t * f ;
string newconfigfile ;
Q_snprintf ( newconfigfile , MAX_STRING , " %s.new " , name ) ;
// TODO: remove this mechanism, make it safer for now
already_loaded = SV_InitGameProgs ( ) ; // collect user variables
// FIXME: move this out until menu parser is done
CSCR_LoadDefaultCVars ( " settings.scr " ) ;
@ -1448,10 +1444,6 @@ void GAME_EXPORT Host_WriteServerConfig( const char *name )
@@ -1448,10 +1444,6 @@ void GAME_EXPORT Host_WriteServerConfig( const char *name )
Host_FinalizeConfig ( f , name ) ;
}
else Con_DPrintf ( S_ERROR " Couldn't write %s. \n " , name ) ;
// don't unload library that wasn't loaded by us
if ( ! already_loaded )
SV_FreeGameProgs ( ) ; // release progs with all variables
}
/*