diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-07 02:44:08 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-07 02:45:23 +0200 |
| commit | c9dee333fe4883f73d73f04db73227c8d23aafb8 (patch) | |
| tree | d168266b936ac457be127fc5e6b4b1fa9133c9c9 /src | |
| parent | 251bd41c4499521baa2c810155f85a7fcb528116 (diff) | |
Implement system_can_exit
Diffstat (limited to 'src')
| -rw-r--r-- | src/system/inc/system.h | 3 | ||||
| -rw-r--r-- | src/system/ps1/src/init.c | 5 | ||||
| -rw-r--r-- | src/system/sdl-1.2/src/system.c | 5 |
3 files changed, 13 insertions, 0 deletions
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 <stdbool.h> + #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 <stdio.h> #include <stdlib.h> +bool system_can_exit(void) +{ + return true; +} + void system_loop(void) { SDL_PumpEvents(); |
