From b832dfbb3ac0c60989862c300c70353e36fcd2ed Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 14 Dec 2024 13:47:20 +1000 Subject: [PATCH] CDROM: Zero out seek start/end after read --- src/core/cdrom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 3cc6f3ffb..1aadd966f 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -2724,6 +2724,8 @@ void CDROM::BeginReading(TickCount ticks_late /* = 0 */, bool after_seek /* = fa s_state.drive_event.Schedule(first_sector_ticks); s_state.requested_lba = s_state.current_lba; + s_state.seek_start_lba = 0; + s_state.seek_end_lba = 0; s_reader.QueueReadSector(s_state.requested_lba); } @@ -2859,7 +2861,6 @@ void CDROM::UpdateSubQPositionWhileSeeking() current_lba, completed_frac); s_state.last_subq_needs_update = (s_state.current_subq_lba != current_lba); - s_state.current_lba = current_lba; // TODO: This is probably wrong... hold position shouldn't change. s_state.current_subq_lba = current_lba; s_state.subq_lba_update_tick = System::GetGlobalTickCounter(); s_state.subq_lba_update_carry = 0;