mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
DVDInterface: Fix crash when playing wiiware.
This commit is contained in:
parent
c0c180bdc2
commit
1e8b668793
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue