twn_util.c: make alloc failure death message clearer

This commit is contained in:
wanp 2024-09-26 19:37:46 -03:00
parent b4b9e0ebef
commit 64d1c20b4a

View File

@ -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();