From 64d1c20b4ad506c8e66f632ebfbdadf8408c229b Mon Sep 17 00:00:00 2001 From: wanp Date: Thu, 26 Sep 2024 19:37:46 -0300 Subject: [PATCH] twn_util.c: make alloc failure death message clearer --- src/twn_util.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/twn_util.c b/src/twn_util.c index bf2b30a..8f79d1d 100644 --- a/src/twn_util.c +++ b/src/twn_util.c @@ -66,10 +66,9 @@ void log_warn(const char *restrict format, ...) { _Noreturn static void alloc_failure_death(void) { log_critical("Allocation failure. Aborting NOW."); SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, - "MEMORY ALLOCATION FAILURE.", - "FAILED TO ALLOCATE MEMORY. " - "YOU MIGHT BE UNLUCKY. " - "THE GAME WILL EXIT NOW.", + "MEMORY ALLOCATION FAILURE", + "CRITICAL MEMORY ALLOCATION FAILED. " + "EXITING IMMEDIATELY!", NULL); die_abruptly();