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)
{
Log_WarningPrintf("CDROM Pause command while seeking - sending error response");
SendErrorResponse(STAT_ERROR, ERROR_REASON_NOT_READY);
EndCommand();
return;
// TODO: On console, this returns an error. But perhaps only during the coarse/fine seek part? Needs more
// hardware tests.
Log_WarningPrintf("CDROM Pause command while seeking - updating position");
UpdatePositionWhileSeeking();
m_drive_event->Deactivate();
}
// TODO: Should return an error if seeking.