diff --git a/Source/Core/Core/HW/DVD/AMMediaboard.cpp b/Source/Core/Core/HW/DVD/AMMediaboard.cpp index 4198824968..6aecfb6370 100644 --- a/Source/Core/Core/HW/DVD/AMMediaboard.cpp +++ b/Source/Core/Core/HW/DVD/AMMediaboard.cpp @@ -427,19 +427,16 @@ u32 ExecuteCommand(std::array& DICMDBUF, u32 address, u32 length) } } - DICMDBUF[0] <<= 24; - DICMDBUF[1] <<= 2; + u32 command = DICMDBUF[0] << 24; + u32 offset = DICMDBUF[1] << 2; // SegaBoot adds bits for some reason to offset/length // also adds 0x20 to offset - if (DICMDBUF[1] == 0x00100440) + if (offset == 0x00100440) { s_segaboot = true; } - u32 command = DICMDBUF[0]; - u32 offset = DICMDBUF[1]; - INFO_LOG_FMT(DVDINTERFACE_AMMB, "GC-AM: {:08x} {:08x} DMA=addr:{:08x},len:{:08x} Keys: {:08x} {:08x} {:08x}", command, offset, address, length, s_GCAM_key_a, s_GCAM_key_b, s_GCAM_key_c);