diff --git a/src/system/inc/system.h b/src/system/inc/system.h index 5338a0b..4183401 100644 --- a/src/system/inc/system.h +++ b/src/system/inc/system.h @@ -1,6 +1,8 @@ #ifndef SYSTEM_H #define SYSTEM_H +#include + #ifdef __cplusplus extern "C" { @@ -9,6 +11,7 @@ extern "C" int system_init(void); void system_deinit(void); void system_loop(void); +bool system_can_exit(void); #ifdef __cplusplus } diff --git a/src/system/ps1/src/init.c b/src/system/ps1/src/init.c index a644e47..4c30fbd 100644 --- a/src/system/ps1/src/init.c +++ b/src/system/ps1/src/init.c @@ -6,6 +6,11 @@ volatile bool vblank_set; +bool system_can_exit(void) +{ + return false; +} + static void vblank(void *const arg) { vblank_set = true; diff --git a/src/system/sdl-1.2/src/system.c b/src/system/sdl-1.2/src/system.c index 37dca77..c1a79e9 100644 --- a/src/system/sdl-1.2/src/system.c +++ b/src/system/sdl-1.2/src/system.c @@ -5,6 +5,11 @@ #include #include +bool system_can_exit(void) +{ + return true; +} + void system_loop(void) { SDL_PumpEvents();