Skip to content

Commit

Permalink
CDROM: Zero out seek start/end after read
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 14, 2024
1 parent c25c006 commit b832dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/cdrom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b832dfb

Please sign in to comment.