mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-08-15 08:27:57 +00:00
add sdl error message on failed init
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
GUI::GUI() {
|
GUI::GUI() {
|
||||||
const int result = SDL_Init(SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO);
|
const int result = SDL_Init(SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO);
|
||||||
if (result != 0) {
|
if (result != 0) {
|
||||||
|
std::cerr << "Failed to initialize SDL: " << SDL_GetError() << std::endl;
|
||||||
throw GUI::NotInitException();
|
throw GUI::NotInitException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user