CDROM: Clear setloc pending on redundant read

Fixes palette corruption in Joshikousei no Houkago... Pukunpa.
This commit is contained in:
Connor McLaughlin 2021-04-10 14:43:25 +10:00
parent 327e8f3f59
commit 6a0bd7ee64
1 changed files with 3 additions and 1 deletions

View File

@ -975,7 +975,9 @@ void CDROM::ExecuteCommand()
if ((!m_setloc_pending || m_setloc_position.ToLBA() == GetNextSectorToBeRead()) &&
(m_drive_state == DriveState::Reading || (IsSeeking() && m_read_after_seek)))
{
Log_DevPrintf("Ignoring read command with no/same setloc, already reading/reading after seek");
Log_DevPrintf("Ignoring read command with %s setloc, already reading/reading after seek",
m_setloc_pending ? "pending" : "same");
m_setloc_pending = false;
}
else
{