r879 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 27 21:10:46 EDT 2006


Author: thilo
Date: 2006-08-27 21:10:46 -0400 (Sun, 27 Aug 2006)
New Revision: 879

Modified:
   trunk/code/qcommon/common.c
   trunk/code/qcommon/files.c
   trunk/code/qcommon/qcommon.h
Log:
More fixes for the FS_Shutdown change. Declare qconsole.log as closed before FS_Shutdown
closes all files.


Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2006-08-28 00:44:59 UTC (rev 878)
+++ trunk/code/qcommon/common.c	2006-08-28 01:10:46 UTC (rev 879)
@@ -51,8 +51,7 @@
 jmp_buf abortframe;		// an ERR_DROP occured, exit the entire frame
 
 
-FILE *debuglogfile;
-static fileHandle_t logfile;
+fileHandle_t	logfile;
 fileHandle_t	com_journalFile;			// events are written here
 fileHandle_t	com_journalDataFile;		// config files are written here
 

Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c	2006-08-28 00:44:59 UTC (rev 878)
+++ trunk/code/qcommon/files.c	2006-08-28 01:10:46 UTC (rev 879)
@@ -2719,6 +2719,9 @@
 	searchpath_t	*p, *next;
 	int	i;
 
+	// logfile will now get closed.
+	logfile = 0;
+
 	for(i = 0; i < MAX_FILE_HANDLES; i++) {
 		if (fsh[i].handleFiles.file.o) {
 			FS_FCloseFile(i);

Modified: trunk/code/qcommon/qcommon.h
===================================================================
--- trunk/code/qcommon/qcommon.h	2006-08-28 00:44:59 UTC (rev 878)
+++ trunk/code/qcommon/qcommon.h	2006-08-28 01:10:46 UTC (rev 879)
@@ -776,6 +776,7 @@
 
 extern	qboolean	com_errorEntered;
 
+extern	fileHandle_t	logfile;
 extern	fileHandle_t	com_journalFile;
 extern	fileHandle_t	com_journalDataFile;
 




More information about the quake3-commits mailing list