aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-01-09 02:16:03 +0100
committerArisotura <thetotalworm@gmail.com>2022-01-09 02:16:03 +0100
commitdff8980a2771713728b5d1892249ed13e7588612 (patch)
tree3f8227a661d57ff2c702dfce7d7075268e3b1dfd
parent35cc79787d6ebd0489a7a218a5e4f487beaf6a7b (diff)
parent0a8f3c9344b2983efd3ba559307c814b1f727a0f (diff)
Merge branch 'master' of github.com:Arisotura/melonDS
-rw-r--r--src/frontend/qt_sdl/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 6ae4d3d..23ab276 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;
}