mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-23 05:49:43 +00:00
CDROM: Avoid double seek on repeated Setloc+ReadS
This commit is contained in:
parent
97938a8b8c
commit
5f607d8c7a
@ -1670,7 +1670,7 @@ TickCount CDROM::GetTicksForTOCRead()
|
|||||||
|
|
||||||
CDImage::LBA CDROM::GetNextSectorToBeRead()
|
CDImage::LBA CDROM::GetNextSectorToBeRead()
|
||||||
{
|
{
|
||||||
if (!IsReadingOrPlaying())
|
if (!IsReadingOrPlaying() && !IsSeeking())
|
||||||
return s_state.current_lba;
|
return s_state.current_lba;
|
||||||
|
|
||||||
s_reader.WaitForReadToComplete();
|
s_reader.WaitForReadToComplete();
|
||||||
|
Loading…
Reference in New Issue
Block a user