diff --git a/SDL/main.c b/SDL/main.c index 5b2164d96..6286b8fdf 100644 --- a/SDL/main.c +++ b/SDL/main.c @@ -1026,7 +1026,10 @@ int main(int argc, char **argv) signal(SIGINT, debugger_interrupt); signal(SIGUSR1, debugger_reset); - SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO); + if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO) < 0) { + fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); + } + if ((console_supported = CON_start(completer))) { CON_set_repeat_empty(true); CON_printf("SameBoy v" GB_VERSION "\n");