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) { _Noreturn static void alloc_failure_death(void) {
log_critical("Allocation failure. Aborting NOW."); log_critical("Allocation failure. Aborting NOW.");
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
"MEMORY ALLOCATION FAILURE.", "MEMORY ALLOCATION FAILURE",
"FAILED TO ALLOCATE MEMORY. " "CRITICAL MEMORY ALLOCATION FAILED. "
"YOU MIGHT BE UNLUCKY. " "EXITING IMMEDIATELY!",
"THE GAME WILL EXIT NOW.",
NULL); NULL);
die_abruptly(); die_abruptly();