mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 15:11:46 +00:00
- Added a fflush() call after the logfile write in I_FatalError so that the
error text is visible in the file while the error dialog is displayed. SVN r1396 (trunk)
This commit is contained in:
parent
92e6a72da1
commit
d0e7e574e1
3 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
February 3, 2009
|
||||||
|
- Added a fflush call after the logfile write in I_FatalError so that the
|
||||||
|
error text is visible in the file while the error dialog is displayed.
|
||||||
|
|
||||||
January 18, 2009 - February 3, 2009 (Changes by Graf Zahl)
|
January 18, 2009 - February 3, 2009 (Changes by Graf Zahl)
|
||||||
- moved all code related to global ACS variables to p_acs.cpp where it belongs.
|
- moved all code related to global ACS variables to p_acs.cpp where it belongs.
|
||||||
- fixed: The nextmap and nextsecret CCMDs need to call G_DeferedInitNew instead of G_InitNew.
|
- fixed: The nextmap and nextsecret CCMDs need to call G_DeferedInitNew instead of G_InitNew.
|
||||||
|
|
|
@ -254,7 +254,10 @@ void STACK_ARGS I_FatalError (const char *error, ...)
|
||||||
|
|
||||||
// Record error to log (if logging)
|
// Record error to log (if logging)
|
||||||
if (Logfile)
|
if (Logfile)
|
||||||
|
{
|
||||||
fprintf (Logfile, "\n**** DIED WITH FATAL ERROR:\n%s\n", errortext);
|
fprintf (Logfile, "\n**** DIED WITH FATAL ERROR:\n%s\n", errortext);
|
||||||
|
fflush (Logfile);
|
||||||
|
}
|
||||||
// throw CFatalError (errortext);
|
// throw CFatalError (errortext);
|
||||||
fprintf (stderr, "%s\n", errortext);
|
fprintf (stderr, "%s\n", errortext);
|
||||||
exit (-1);
|
exit (-1);
|
||||||
|
|
|
@ -474,7 +474,10 @@ void STACK_ARGS I_FatalError (const char *error, ...)
|
||||||
|
|
||||||
// Record error to log (if logging)
|
// Record error to log (if logging)
|
||||||
if (Logfile)
|
if (Logfile)
|
||||||
|
{
|
||||||
fprintf (Logfile, "\n**** DIED WITH FATAL ERROR:\n%s\n", errortext);
|
fprintf (Logfile, "\n**** DIED WITH FATAL ERROR:\n%s\n", errortext);
|
||||||
|
fflush (Logfile);
|
||||||
|
}
|
||||||
|
|
||||||
throw CFatalError (errortext);
|
throw CFatalError (errortext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue