MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_Shutdown

Function Com_Shutdown

code/qcommon/common.cpp:1560–1592  ·  view source on GitHub ↗

================= Com_Shutdown ================= */

Source from the content-addressed store, hash-verified

1558=================
1559*/
1560void Com_Shutdown (void) {
1561 CM_ClearMap();
1562
1563 if (logfile) {
1564 FS_FCloseFile (logfile);
1565 logfile = 0;
1566 }
1567
1568 if (speedslog) {
1569 FS_Write("\n};", strlen("\n};"), speedslog);
1570 FS_FCloseFile (speedslog);
1571 speedslog = 0;
1572 }
1573
1574 if (camerafile) {
1575 FS_FCloseFile (camerafile);
1576 camerafile = 0;
1577 }
1578
1579 if ( com_journalFile ) {
1580 FS_FCloseFile( com_journalFile );
1581 com_journalFile = 0;
1582 }
1583
1584#ifdef JK2_MODE
1585 JK2SP_Shutdown();
1586#else
1587 SE_ShutDown();//close the string packages
1588#endif
1589
1590 extern void Netchan_Shutdown();
1591 Netchan_Shutdown();
1592}
1593
1594/*
1595==================

Callers 2

Com_ErrorFunction · 0.70
Com_Quit_fFunction · 0.70

Calls 6

JK2SP_ShutdownFunction · 0.85
Netchan_ShutdownFunction · 0.85
CM_ClearMapFunction · 0.70
FS_FCloseFileFunction · 0.70
FS_WriteFunction · 0.70
SE_ShutDownFunction · 0.70

Tested by

no test coverage detected