mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
More fixes for the FS_Shutdown change. Declare qconsole.log as closed before FS_Shutdown
closes all files.
This commit is contained in:
parent
fbfc886b22
commit
39d050b748
3 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue