Fatals now work again.
This commit is contained in:
12
src/86box.c
12
src/86box.c
@@ -354,12 +354,14 @@ fatal(const char *fmt, ...)
|
||||
if ((sp = strchr(temp, '\n')) != NULL)
|
||||
*sp = '\0';
|
||||
|
||||
do_pause(2);
|
||||
|
||||
ui_msgbox(MBX_ERROR | MBX_FATAL | MBX_ANSI, temp);
|
||||
|
||||
/* Cleanly terminate all of the emulator's components so as
|
||||
to avoid things like threads getting stuck. */
|
||||
do_stop();
|
||||
|
||||
ui_msgbox(MBX_ERROR | MBX_FATAL | MBX_ANSI, temp);
|
||||
|
||||
fflush(stdlog);
|
||||
|
||||
exit(-1);
|
||||
@@ -396,12 +398,14 @@ fatal_ex(const char *fmt, va_list ap)
|
||||
if ((sp = strchr(temp, '\n')) != NULL)
|
||||
*sp = '\0';
|
||||
|
||||
do_pause(2);
|
||||
|
||||
ui_msgbox(MBX_ERROR | MBX_FATAL | MBX_ANSI, temp);
|
||||
|
||||
/* Cleanly terminate all of the emulator's components so as
|
||||
to avoid things like threads getting stuck. */
|
||||
do_stop();
|
||||
|
||||
ui_msgbox(MBX_ERROR | MBX_FATAL | MBX_ANSI, temp);
|
||||
|
||||
fflush(stdlog);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user