More fixes for the FS_Shutdown change. Declare qconsole.log as closed before FS_Shutdown
closes all files.
This commit is contained in:
1 parent
fbfc886b22
commit
39d050b748
3 files changed
+5
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user