twn_util.c: make alloc failure death message clearer
This commit is contained in:
parent
b4b9e0ebef
commit
64d1c20b4a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user