mirror of https://github.com/LIJI32/SameBoy.git
Added warning for SDL init failure
This commit is contained in:
parent
5192e3a07b
commit
d267d83cec
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue