From 739ada47214d06f628a94160c08e5c8229ec8c23 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 27 Oct 2019 14:38:48 +1000 Subject: [PATCH] CDROM: Send pre-pause/seek/read stat for commands --- src/core/cdrom.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index d1965132d..7f01c0ec4 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -690,9 +690,9 @@ void CDROM::ExecuteCommand() } else { + SendACKAndStat(); StopReading(); BeginSeeking(); - SendACKAndStat(); } EndCommand(); @@ -709,9 +709,9 @@ void CDROM::ExecuteCommand() } else { + SendACKAndStat(); StopReading(); BeginReading(false); - SendACKAndStat(); } EndCommand(); @@ -743,8 +743,8 @@ void CDROM::ExecuteCommand() m_setloc_pending = true; } - BeginReading(true); SendACKAndStat(); + BeginReading(true); } EndCommand(); @@ -1254,6 +1254,7 @@ void CDROM::StopReading() m_secondary_status.playing_cdda = false; m_secondary_status.seeking = false; m_read_or_seek_remaining_ticks = 0; + m_sector_buffer.clear(); } void CDROM::LoadDataFIFO()