mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
CDROM: Tweak timings / add missing status update
This commit is contained in:
parent
f22de715c7
commit
4283fa7f74
|
@ -476,7 +476,7 @@ void CDROM::UpdateStatusRegister()
|
||||||
|
|
||||||
TickCount CDROM::GetAckDelayForCommand() const
|
TickCount CDROM::GetAckDelayForCommand() const
|
||||||
{
|
{
|
||||||
const u32 default_ack_delay = 2000;
|
const u32 default_ack_delay = 4000;
|
||||||
if (m_command == Command::Init)
|
if (m_command == Command::Init)
|
||||||
return 60000;
|
return 60000;
|
||||||
else
|
else
|
||||||
|
@ -934,10 +934,16 @@ void CDROM::BeginReading(bool cdda)
|
||||||
|
|
||||||
if (m_setloc_pending)
|
if (m_setloc_pending)
|
||||||
{
|
{
|
||||||
BeginSeeking();
|
if (m_media->GetMSFPositionOnDisc() != m_setloc_position)
|
||||||
m_read_after_seek = !cdda;
|
{
|
||||||
m_play_after_seek = cdda;
|
BeginSeeking();
|
||||||
return;
|
m_read_after_seek = !cdda;
|
||||||
|
m_play_after_seek = cdda;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// already in position
|
||||||
|
m_setloc_pending = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_secondary_status.motor_on = true;
|
m_secondary_status.motor_on = true;
|
||||||
|
@ -980,6 +986,7 @@ void CDROM::DoSeekComplete()
|
||||||
|
|
||||||
m_async_response_fifo.Push(m_secondary_status.bits);
|
m_async_response_fifo.Push(m_secondary_status.bits);
|
||||||
SetAsyncInterrupt(Interrupt::INT2);
|
SetAsyncInterrupt(Interrupt::INT2);
|
||||||
|
UpdateStatusRegister();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue