From 94d33847b68912dba5e70731096a410027091986 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 4 Apr 2026 08:58:19 -0700
Subject: [PATCH] Show an error if we couldn't initialize
---
game/main.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/game/main.cpp b/game/main.cpp
index a1909085..678c0c91 100644
--- a/game/main.cpp
+++ b/game/main.cpp
@@ -222,6 +222,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
/* Initialize everything. :) */
if (!StartInitialization(window_width, window_height, window_flags)) {
/* An error message was already printed */
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "Couldn't initialize game", nullptr);
return SDL_APP_FAILURE;
}