From f2b173c5de5770d72a10c939a951f32fc44018f8 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 18 Sep 2002 15:32:52 +0000 Subject: [PATCH] E_Exit now throws a string containing the error, which will be caught in SDL to create a correct shutdown. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@294 --- src/misc/support.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/misc/support.cpp b/src/misc/support.cpp index 6e5f7cae..c9771c65 100644 --- a/src/misc/support.cpp +++ b/src/misc/support.cpp @@ -217,13 +217,8 @@ void S_Warn(char * format,...) { void E_Exit(char * format,...) { - if (sdl.full_screen) { - GFX_SwitchFullScreen(); - } - char buf[1024]; -// SysShutDown(); va_list msg; strcpy(buf,"EXIT:"); va_start(msg,format); @@ -232,9 +227,5 @@ void E_Exit(char * format,...) { strcat(buf,"\n"); printf(buf); - printf("Press ENTER to stop\n"); - fgetc(stdin); - GFX_Stop(); - exit(2); - + throw(buf); }; \ No newline at end of file