CDROM: Use partial seek position when re-seeking

This commit is contained in:
Connor McLaughlin 2020-07-10 20:55:00 +10:00
parent 4d1880091e
commit 71157b171e

View file

@ -1034,6 +1034,10 @@ void CDROM::ExecuteCommand()
{ {
const bool logical = (m_command == Command::SeekL); const bool logical = (m_command == Command::SeekL);
Log_DebugPrintf("CDROM %s command", logical ? "SeekL" : "SeekP"); Log_DebugPrintf("CDROM %s command", logical ? "SeekL" : "SeekP");
if (IsSeeking())
UpdatePositionWhileSeeking();
if (!CanReadMedia()) if (!CanReadMedia())
{ {
SendErrorResponse(STAT_ERROR, 0x80); SendErrorResponse(STAT_ERROR, 0x80);