From caf6231fed67755bee143c57e62f6c3047e6d416 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 12 May 2024 14:51:03 -0400 Subject: [PATCH] Stop writing gamedata/config/profiles in I_Error --- src/sdl/i_system.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 49b5f0604..4b3d45485 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -1738,11 +1738,7 @@ void I_Error(const char *error, ...) if (errorcount == 7) SDL_Quit(); if (errorcount == 8) - { - M_SaveConfig(NULL); - G_DirtyGameData(); // done first in case an error is in G_SaveGameData - G_SaveGameData(); - } + G_DirtyGameData(); if (errorcount > 20) { va_start(argptr, error); @@ -1776,9 +1772,10 @@ void I_Error(const char *error, ...) I_OutputMsg("\nI_Error(): %s\n", buffer); // --- - M_SaveConfig(NULL); // save game config, cvars.. - G_DirtyGameData(); // done first in case an error is in G_SaveGameData - G_SaveGameData(); // Tails 12-08-2002 + // FUCK OFF, stop allocating memory to write entire gamedata & configs + // when the program needs to shut down ASAP and we already save + // these all the time! Just set the dirty bit and GET OUT! + G_DirtyGameData(); // Shutdown. Here might be other errors.