/* =============== CL_Shutdown =============== */ void CL_Shutdown( void ) { MsgDev( D_INFO, "CL_Shutdown()\n" ); if( cls.initialized && !host.crashed ) { Host_WriteOpenGLConfig (); Host_WriteVideoConfig (); } IN_TouchShutdown(); CL_CloseDemoHeader(); IN_Shutdown (); Mobile_Destroy(); SCR_Shutdown (); if( cls.initialized ) { CL_UnloadProgs (); cls.initialized = false; } FS_Delete( "demoheader.tmp" ); // remove tmp file SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them S_Shutdown (); R_Shutdown (); }
void SCR_Shutdown( void ) { if( !scr_init ) return; MsgDev( D_NOTE, "SCR_Shutdown()\n" ); Cmd_RemoveCommand( "timerefresh" ); Cmd_RemoveCommand( "skyname" ); Cmd_RemoveCommand( "viewpos" ); UI_SetActiveMenu( false ); SCR_FreeCinematic(); if( host.state != HOST_RESTART ) UI_UnloadProgs(); scr_init = false; }
/* =============== CL_Shutdown =============== */ void CL_Shutdown( void ) { // already freed if( !cls.initialized ) return; cls.initialized = false; MsgDev( D_INFO, "CL_Shutdown()\n" ); Host_WriteOpenGLConfig (); Host_WriteVideoConfig (); CL_CloseDemoHeader(); IN_Shutdown (); SCR_Shutdown (); CL_UnloadProgs (); SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them S_Shutdown (); R_Shutdown (); }