From f355e3b9d3ed055f0f62d678f1f3c714ee0f58f1 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Fri, 14 Aug 2026 14:09:30 +0400 Subject: [PATCH] afaf --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3785331..b97ac6c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -303,8 +303,10 @@ int main(int argc, char *argv[]){ SDL_SetWindowFullscreen(win, true); if (!win){ - ErrorMsg("Error creating window: %s", SDL_GetError()); - return 0; + WarnMsg("Error creating window: %s", SDL_GetError()); + MIX_Quit(); + TTF_Quit(); + SDL_Quit(); } /* OSX and Windows have their own native ways of @@ -324,7 +326,7 @@ int main(int argc, char *argv[]){ if (!mixer){ SDL_DestroyWindow(win); - ErrorMsg("Error creating Mixer Device"); + WarnMsg("Error creating Mixer Device, check your system audio configuration"); MIX_Quit(); TTF_Quit(); SDL_Quit();