Saturn: recalculate the CD cycle time when file access is delayed (Time Gal & Ninja Hayate)

This commit is contained in:
Sergiy Dvodnenko
2025-02-08 11:28:34 +02:00
parent 9003f1706f
commit 80107bf693

View File

@@ -75,13 +75,19 @@ void saturn_poll()
satcdd.Update();
saturn_frame_cnt++;
#ifdef SATURN_DEBUG
unsigned long curr_timer = GetTimer(0);
if (curr_timer >= poll_timer) {
poll_timer = curr_timer + CalcTimerOffset(time_mode);
#ifdef SATURN_DEBUG
user_io_status_set("[63]", 1);
printf("\x1b[32mSaturn: ");
printf("Time over: next = %lu, curr = %lu", poll_timer, curr_timer);
printf("\n\x1b[0m");
#endif // SATURN_DEBUG
}
#ifdef SATURN_DEBUG
else
user_io_status_set("[63]", 0);
#endif // SATURN_DEBUG
}
}