/* * ML_Restart * Restart map list stuff */ void ML_Restart( qboolean forcemaps ) { ML_Shutdown(); if( forcemaps ) FS_RemoveFile( MLIST_CACHE ); FS_Rescan(); ML_Init(); }
/* * ML_Restart * Restart map list stuff */ void ML_Restart( bool forcemaps ) { ML_Shutdown(); if( forcemaps ) { int filenum; if( FS_FOpenFile( MLIST_CACHE, &filenum, FS_WRITE|FS_CACHE ) != -1 ) FS_FCloseFile( filenum ); } FS_Rescan(); ML_Init(); }
/* * SV_Shutdown * * Called once when the program is shutting down */ void SV_Shutdown( const char *finalmsg ) { if( !sv_initialized ) return; ML_Shutdown(); SV_MM_Shutdown( qtrue ); SV_ShutdownGame( finalmsg, qfalse ); SV_ShutdownOperatorCommands(); Mem_FreePool( &sv_mempool ); sv_initialized = qfalse; }