mirror of https://github.com/LIJI32/SameBoy.git
call SDL_Quit() on exit to prevent a crash on wayland
This commit is contained in:
parent
b1fec62564
commit
ee3878e43a
|
@ -1052,6 +1052,8 @@ int main(int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO);
|
SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO);
|
||||||
|
atexit(SDL_Quit);
|
||||||
|
|
||||||
if ((console_supported = CON_start(completer))) {
|
if ((console_supported = CON_start(completer))) {
|
||||||
CON_set_repeat_empty(true);
|
CON_set_repeat_empty(true);
|
||||||
CON_printf("SameBoy v" GB_VERSION "\n");
|
CON_printf("SameBoy v" GB_VERSION "\n");
|
||||||
|
|
Loading…
Reference in New Issue