Implement system_can_exit
This commit is contained in:
parent
251bd41c44
commit
c9dee333fe
|
@ -1,6 +1,8 @@
|
||||||
#ifndef SYSTEM_H
|
#ifndef SYSTEM_H
|
||||||
#define SYSTEM_H
|
#define SYSTEM_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
@ -9,6 +11,7 @@ extern "C"
|
||||||
int system_init(void);
|
int system_init(void);
|
||||||
void system_deinit(void);
|
void system_deinit(void);
|
||||||
void system_loop(void);
|
void system_loop(void);
|
||||||
|
bool system_can_exit(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
volatile bool vblank_set;
|
volatile bool vblank_set;
|
||||||
|
|
||||||
|
bool system_can_exit(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static void vblank(void *const arg)
|
static void vblank(void *const arg)
|
||||||
{
|
{
|
||||||
vblank_set = true;
|
vblank_set = true;
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
bool system_can_exit(void)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void system_loop(void)
|
void system_loop(void)
|
||||||
{
|
{
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
|
|
Loading…
Reference in New Issue