mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
Merge pull request #13556 from jordan-woyak/dvd-interface-crash-fix
DVDInterface: Fix crash when playing wiiware.
This commit is contained in:
commit
0f30b59aef
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
|
// Swaps endian of Triforce DI commands, and zeroes out random bytes to prevent unknown read
|
||||||
// subcommand errors
|
// subcommand errors
|
||||||
auto& dvd_thread = m_system.GetDVDThread();
|
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
|
// TODO(C++23): Use std::byteswap and a bitwise AND for increased clarity
|
||||||
m_DICMDBUF[0] <<= 24;
|
m_DICMDBUF[0] <<= 24;
|
||||||
|
|
Loading…
Add table
Reference in a new issue