[turbine/gba] Make wake up time static

This commit is contained in:
Gary Talent 2023-12-03 20:38:23 -06:00
parent d23b69ce17
commit 34081a0414
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;