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:
parent
b44f5714c5
commit
f2b173c5de
1 changed files with 1 additions and 10 deletions
|
@ -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);
|
||||
};
|
Loading…
Add table
Reference in a new issue