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