CDROM: Update position when pausing while seeking instead of erroring

This was causing freezes in FF7 - needs more research.
This commit is contained in:
Connor McLaughlin 2021-01-25 01:46:44 +10:00
parent f47784cb41
commit b7752ff30b
1 changed files with 5 additions and 4 deletions

View File

@ -1041,10 +1041,11 @@ void CDROM::ExecuteCommand()
{ {
if (m_secondary_status.seeking) if (m_secondary_status.seeking)
{ {
Log_WarningPrintf("CDROM Pause command while seeking - sending error response"); // TODO: On console, this returns an error. But perhaps only during the coarse/fine seek part? Needs more
SendErrorResponse(STAT_ERROR, ERROR_REASON_NOT_READY); // hardware tests.
EndCommand(); Log_WarningPrintf("CDROM Pause command while seeking - updating position");
return; UpdatePositionWhileSeeking();
m_drive_event->Deactivate();
} }
// TODO: Should return an error if seeking. // TODO: Should return an error if seeking.