X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_sdl.c;h=e3d70f60929cb1b2a0463eb8adc1024c201ab469;hp=5b8537528b477c3108796b3634f83901f46acd4c;hb=69e482e3def6669a4fa921d07f9ba04883d7de34;hpb=17f84149a604fefb8181a280487bd48ca7a353b2;ds=sidebyside diff --git a/frontend/plat_sdl.c b/frontend/plat_sdl.c index 5b853752..e3d70f60 100644 --- a/frontend/plat_sdl.c +++ b/frontend/plat_sdl.c @@ -72,6 +72,11 @@ static int change_video_mode(void) return plat_sdl_change_video_mode(w, h, 0); } +static void quit_cb(void) +{ + emu_core_ask_exit(); +} + void plat_init(void) { int ret; @@ -95,6 +100,7 @@ void plat_init(void) pl_rearmed_cbs.only_16bpp = 1; bgr_to_uyvy_init(); + plat_sdl_quit_cb = quit_cb; } void plat_finish(void)