Browse Source

engine: client: check if filesystem was initialized during client shutdown

pull/2/head
Alibek Omarov 1 year ago
parent
commit
5b582b744a
  1. 5
      engine/client/cl_main.c

5
engine/client/cl_main.c

@ -3163,10 +3163,11 @@ void CL_Shutdown( void ) @@ -3163,10 +3163,11 @@ void CL_Shutdown( void )
cls.initialized = false;
// for client-side VGUI support we use other order
if( !GI->internal_vgui_support )
if( FI && FI->GameInfo && !FI->GameInfo->internal_vgui_support )
VGui_Shutdown();
FS_Delete( "demoheader.tmp" ); // remove tmp file
if( g_fsapi.Delete )
g_fsapi.Delete( "demoheader.tmp" ); // remove tmp file
SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them
S_Shutdown ();
R_Shutdown ();

Loading…
Cancel
Save