CDROM: Seek to start of first track on stop

Fixes WipEout crashing after track selection.
This commit is contained in:
Connor McLaughlin 2019-12-07 21:09:29 +10:00
parent 315f2b701a
commit 42ee55ae17

View file

@ -1190,6 +1190,8 @@ void CDROM::DoStopComplete()
m_secondary_status.motor_on = false; m_secondary_status.motor_on = false;
m_sector_buffer.clear(); m_sector_buffer.clear();
m_media->Seek(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::INT2); SetAsyncInterrupt(Interrupt::INT2);