mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
plat_sdl: handle exit in some way
This commit is contained in:
parent
53b2e51c0b
commit
bec84f9200
1 changed files with 8 additions and 0 deletions
|
@ -200,6 +200,12 @@ void plat_early_init(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void plat_sdl_quit(void)
|
||||||
|
{
|
||||||
|
// for now..
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
void plat_init(void)
|
void plat_init(void)
|
||||||
{
|
{
|
||||||
int shadow_size;
|
int shadow_size;
|
||||||
|
@ -209,6 +215,8 @@ void plat_init(void)
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
|
plat_sdl_quit_cb = plat_sdl_quit;
|
||||||
|
|
||||||
SDL_WM_SetCaption("PicoDrive" VERSION, NULL);
|
SDL_WM_SetCaption("PicoDrive" VERSION, NULL);
|
||||||
|
|
||||||
g_menuscreen_w = plat_sdl_screen->w;
|
g_menuscreen_w = plat_sdl_screen->w;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue