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) {
|
_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();
|
||||||
|
Loading…
Reference in New Issue
Block a user