1
0
Fork 0

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
This commit is contained in:
Sjoerd van der Berg 2002-09-18 15:32:52 +00:00
parent b44f5714c5
commit f2b173c5de

View file

@ -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);
};