diff --git a/ports/doom/patches/0002-Call-exit-on-I_Error-and-I_Quit.patch b/ports/doom/patches/0002-Call-exit-on-I_Quit-and-I_Error.patch similarity index 52% rename from ports/doom/patches/0002-Call-exit-on-I_Error-and-I_Quit.patch rename to ports/doom/patches/0002-Call-exit-on-I_Quit-and-I_Error.patch index c905f641..29b11813 100644 --- a/ports/doom/patches/0002-Call-exit-on-I_Error-and-I_Quit.patch +++ b/ports/doom/patches/0002-Call-exit-on-I_Quit-and-I_Error.patch @@ -1,14 +1,14 @@ -From eafb5f1d01e3edd3035fc405de808b1a2e2151d2 Mon Sep 17 00:00:00 2001 +From c28fd460c15a3d4cc5aac35d1ea5744f1722cab4 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 3 Apr 2024 21:39:22 +0300 -Subject: [PATCH] Call exit() on I_Error() +Subject: [PATCH] Call exit() on I_Quit() and I_Error() --- doomgeneric/i_system.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doomgeneric/i_system.c b/doomgeneric/i_system.c -index 5d00091..b71aa23 100644 +index 5d00091..bfb204f 100644 --- a/doomgeneric/i_system.c +++ b/doomgeneric/i_system.c @@ -257,6 +257,8 @@ void I_Quit (void) @@ -20,6 +20,15 @@ index 5d00091..b71aa23 100644 #if ORIGCODE SDL_Quit(); +@@ -403,6 +405,8 @@ void I_Error (char *error, ...) + entry = entry->next; + } + ++ exit(1); ++ + exit_gui_popup = !M_ParmExists("-nogui"); + + // Pop up a GUI dialog box to show the error message, if the -- -2.44.0 +2.47.1