mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
Make the message when SDL2 fails to init more descriptive
This commit is contained in:
parent
10d7831917
commit
0a8f3c9344
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user