From 42ee55ae17fa3c939ecba511527588cc6331dab3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 7 Dec 2019 21:09:29 +1000 Subject: [PATCH] CDROM: Seek to start of first track on stop Fixes WipEout crashing after track selection. --- src/core/cdrom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index bb33b5a23..091de19c7 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1190,6 +1190,8 @@ void CDROM::DoStopComplete() m_secondary_status.motor_on = false; m_sector_buffer.clear(); + m_media->Seek(0); + m_async_response_fifo.Clear(); m_async_response_fifo.Push(m_secondary_status.bits); SetAsyncInterrupt(Interrupt::INT2);