From 1e8b66879378bd4168ffdb8f4bccbd7f3a24512f Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 21 Apr 2025 18:24:16 -0500 Subject: [PATCH] DVDInterface: Fix crash when playing wiiware. --- Source/Core/Core/HW/DVD/DVDInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DVD/DVDInterface.cpp b/Source/Core/Core/HW/DVD/DVDInterface.cpp index f6e7954b02..6e60ef7772 100644 --- a/Source/Core/Core/HW/DVD/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVD/DVDInterface.cpp @@ -756,7 +756,7 @@ void DVDInterface::ExecuteCommand(ReplyType reply_type) // Swaps endian of Triforce DI commands, and zeroes out random bytes to prevent unknown read // subcommand errors auto& dvd_thread = m_system.GetDVDThread(); - if (dvd_thread.GetDiscType() == DiscIO::Platform::Triforce) + if (dvd_thread.HasDisc() && dvd_thread.GetDiscType() == DiscIO::Platform::Triforce) { // TODO(C++23): Use std::byteswap and a bitwise AND for increased clarity m_DICMDBUF[0] <<= 24;