From: notaz Date: Sat, 29 Jun 2013 20:01:07 +0000 (+0300) Subject: plat_sdl: handle exit in some way X-Git-Tag: v1.85~77 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=commitdiff_plain;h=bec84f9200faffe4992cae26ddcf5c4fd3d0b789 plat_sdl: handle exit in some way --- diff --git a/platform/common/plat_sdl.c b/platform/common/plat_sdl.c index 28b412d..d8935ac 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -200,6 +200,12 @@ void plat_early_init(void) { } +static void plat_sdl_quit(void) +{ + // for now.. + exit(1); +} + void plat_init(void) { int shadow_size; @@ -209,6 +215,8 @@ void plat_init(void) if (ret != 0) exit(1); + plat_sdl_quit_cb = plat_sdl_quit; + SDL_WM_SetCaption("PicoDrive" VERSION, NULL); g_menuscreen_w = plat_sdl_screen->w;