From 74247d8100fb55007b091e096a79737362d843f6 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 12 Apr 2023 15:08:17 +0100 Subject: [PATCH] Permit compiling with LOGMESSAGES disabled (and accomodate a crash early enough in the startup before the log is made, too) --- src/sdl/i_system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index f6b2853ab..f93a3b3b4 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -297,7 +297,10 @@ static void I_ShowErrorMessageBox(const char *messagefordevelopers, boolean dump ".rpt crash dump" #endif " (very important!) and " : "", - logfilename, +#ifdef LOGMESSAGES + logfilename[0] ? logfilename : +#endif + "uh oh, one wasn't made!?", messagefordevelopers); // Rudementary word wrapping.