DVDThread: Set ReadError instead of BlockOOB for failed reads
With DVDInterface catching out-of-bounds reads, we can let DVDThread use a more accurate error code for situations like a disk failure.
This commit is contained in:
parent
e2b3aadad7
commit
e47c9764de
|
@ -347,7 +347,7 @@ static void FinishRead(u64 id, s64 cycles_late)
|
||||||
PanicAlertFmtT("The disc could not be read (at {0:#x} - {1:#x}).", request.dvd_offset,
|
PanicAlertFmtT("The disc could not be read (at {0:#x} - {1:#x}).", request.dvd_offset,
|
||||||
request.dvd_offset + request.length);
|
request.dvd_offset + request.length);
|
||||||
|
|
||||||
DVDInterface::SetDriveError(DVDInterface::DriveError::BlockOOB);
|
DVDInterface::SetDriveError(DVDInterface::DriveError::ReadError);
|
||||||
interrupt = DVDInterface::DIInterruptType::DEINT;
|
interrupt = DVDInterface::DIInterruptType::DEINT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue