More fixes for the FS_Shutdown change. Declare qconsole.log as closed before FS_Shutdown

closes all files.
This commit is contained in:
Thilo Schulz 2006-08-28 01:10:46 +00:00
parent fbfc886b22
commit 39d050b748
3 changed files with 5 additions and 2 deletions

View file

@ -51,8 +51,7 @@ char *com_argv[MAX_NUM_ARGVS+1];
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

View file

@ -2719,6 +2719,9 @@ void FS_Shutdown( qboolean closemfp ) {
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);

View file

@ -776,6 +776,7 @@ extern int com_frameMsec;
extern qboolean com_errorEntered;
extern fileHandle_t logfile;
extern fileHandle_t com_journalFile;
extern fileHandle_t com_journalDataFile;