Ports: Doom don't call exit() on I_Quit()

This seems to close the app prematurely :D
This commit is contained in:
Bananymous 2024-04-04 00:40:51 +03:00
parent bd69cf599b
commit 7d34bd8f82
1 changed files with 2 additions and 11 deletions

View File

@ -1,7 +1,7 @@
From eafb5f1d01e3edd3035fc405de808b1a2e2151d2 Mon Sep 17 00:00:00 2001 From eafb5f1d01e3edd3035fc405de808b1a2e2151d2 Mon Sep 17 00:00:00 2001
From: Bananymous <bananymousosq@gmail.com> From: Bananymous <bananymousosq@gmail.com>
Date: Wed, 3 Apr 2024 19:08:08 +0300 Date: Wed, 3 Apr 2024 21:39:22 +0300
Subject: [PATCH] Call exit() on I_Error() and I_Quit() Subject: [PATCH] Call exit() on I_Error()
--- ---
doomgeneric/i_system.c | 4 ++++ doomgeneric/i_system.c | 4 ++++
@ -20,15 +20,6 @@ index 5d00091..b71aa23 100644
#if ORIGCODE #if ORIGCODE
SDL_Quit(); SDL_Quit();
@@ -454,6 +456,8 @@ void I_Error (char *error, ...)
}
#endif
+ exit(1);
+
// abort();
#if ORIGCODE
SDL_Quit();
-- --
2.44.0 2.44.0