[turbine/gba] Make wake up time static
This commit is contained in:
parent
d23b69ce17
commit
34081a0414
@ -21,7 +21,7 @@ using namespace turbine;
|
||||
|
||||
extern "C" {
|
||||
|
||||
void turbine_isr_vblank() {
|
||||
void turbine_isr_vblank() noexcept {
|
||||
teagba::applySpriteUpdates();
|
||||
if constexpr(config::GbaEventLoopTimerBased) {
|
||||
// disable vblank interrupt until it is needed again
|
||||
@ -29,7 +29,7 @@ void turbine_isr_vblank() {
|
||||
}
|
||||
}
|
||||
|
||||
void turbine_isr_timer0() {
|
||||
void turbine_isr_timer0() noexcept {
|
||||
g_timerMs = g_timerMs + 1;
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
namespace turbine {
|
||||
|
||||
extern volatile gba_timer_t g_timerMs;
|
||||
gba_timer_t g_wakeupTime;
|
||||
static gba_timer_t g_wakeupTime{};
|
||||
|
||||
ox::Error run(Context &ctx) noexcept {
|
||||
g_wakeupTime = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user