From e47c9764de5c2e8f273c9dcf52b3730914f05521 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 9 Mar 2021 22:40:59 +0100 Subject: [PATCH] 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. --- Source/Core/Core/HW/DVD/DVDThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DVD/DVDThread.cpp b/Source/Core/Core/HW/DVD/DVDThread.cpp index 1cd143269b..bd79cc05fe 100644 --- a/Source/Core/Core/HW/DVD/DVDThread.cpp +++ b/Source/Core/Core/HW/DVD/DVDThread.cpp @@ -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, request.dvd_offset + request.length); - DVDInterface::SetDriveError(DVDInterface::DriveError::BlockOOB); + DVDInterface::SetDriveError(DVDInterface::DriveError::ReadError); interrupt = DVDInterface::DIInterruptType::DEINT; } else