diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-01-08 19:35:21 +0100 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-01-08 19:35:21 +0100 |
commit | 0a8f3c9344b2983efd3ba559307c814b1f727a0f (patch) | |
tree | 6f7f3e10409406ec16bcfe80b90c8f47edd9cb01 /src/frontend | |
parent | 10d783191747807f8925b2a233b796b03a1e0437 (diff) |
Make the message when SDL2 fails to init more descriptive
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 5711a05..8b472fd 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -2960,7 +2960,11 @@ int main(int argc, char** argv) } if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) { - QMessageBox::critical(NULL, "melonDS", "SDL shat itself :("); + const char* err = SDL_GetError(); + QString errorStr = "Failed to initialize SDL. This could indicate an issue with your graphics or audio driver.\n\nThe error was: "; + errorStr += err; + + QMessageBox::critical(NULL, "melonDS", errorStr); return 1; } |