From 80107bf69331b9f89c132db8a6fe38b6702b19bc Mon Sep 17 00:00:00 2001 From: Sergiy Dvodnenko Date: Sat, 8 Feb 2025 11:28:34 +0200 Subject: [PATCH] Saturn: recalculate the CD cycle time when file access is delayed (Time Gal & Ninja Hayate) --- support/saturn/saturn.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/support/saturn/saturn.cpp b/support/saturn/saturn.cpp index daeecfe..0184620 100644 --- a/support/saturn/saturn.cpp +++ b/support/saturn/saturn.cpp @@ -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 } }