From 222113a3435624018122c62cf9bf76cac6885b96 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sat, 2 Dec 2017 23:23:35 +0100 Subject: [PATCH] Add log for SDL_Init failures --- src/blupi.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blupi.cxx b/src/blupi.cxx index 980073c..238c925 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -678,7 +678,10 @@ DoInit (int argc, char * argv[], bool & exit) auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER); if (res < 0) + { + SDL_Log ("Unable to initialize SDL: %s", SDL_GetError ()); return EXIT_FAILURE; + } // Create a window. g_window = SDL_CreateWindow (