CDROM: Clear setloc pending on redundant read
Fixes palette corruption in Joshikousei no Houkago... Pukunpa.
This commit is contained in:
parent
327e8f3f59
commit
6a0bd7ee64
|
@ -975,7 +975,9 @@ void CDROM::ExecuteCommand()
|
||||||
if ((!m_setloc_pending || m_setloc_position.ToLBA() == GetNextSectorToBeRead()) &&
|
if ((!m_setloc_pending || m_setloc_position.ToLBA() == GetNextSectorToBeRead()) &&
|
||||||
(m_drive_state == DriveState::Reading || (IsSeeking() && m_read_after_seek)))
|
(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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue