mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
CDROM: Seek to LBA 0 when resetting
Fixes Love & Destroy.
This commit is contained in:
parent
71157b171e
commit
c5e8327e7a
|
@ -1180,8 +1180,11 @@ void CDROM::ExecuteCommand()
|
||||||
Log_DebugPrintf("CDROM reset command");
|
Log_DebugPrintf("CDROM reset command");
|
||||||
SendACKAndStat();
|
SendACKAndStat();
|
||||||
|
|
||||||
|
if (IsSeeking())
|
||||||
|
UpdatePositionWhileSeeking();
|
||||||
|
|
||||||
m_drive_state = DriveState::Resetting;
|
m_drive_state = DriveState::Resetting;
|
||||||
m_drive_event->Schedule(400000);
|
m_drive_event->Schedule(400000 + GetTicksForSeek(0));
|
||||||
|
|
||||||
EndCommand();
|
EndCommand();
|
||||||
return;
|
return;
|
||||||
|
@ -1675,6 +1678,9 @@ void CDROM::DoResetComplete(TickCount ticks_late)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_current_lba = 0;
|
||||||
|
m_reader.QueueReadSector(0);
|
||||||
|
|
||||||
m_async_response_fifo.Clear();
|
m_async_response_fifo.Clear();
|
||||||
m_async_response_fifo.Push(m_secondary_status.bits);
|
m_async_response_fifo.Push(m_secondary_status.bits);
|
||||||
SetAsyncInterrupt(Interrupt::Complete);
|
SetAsyncInterrupt(Interrupt::Complete);
|
||||||
|
|
Loading…
Reference in a new issue