From 92265a715829d0ec60f6bd6bab1581ef2eab6e81 Mon Sep 17 00:00:00 2001 From: crediar <145270593+crediar@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:29:19 +0200 Subject: [PATCH] Update Source/Core/Core/HW/DVD/AMMediaboard.cpp Co-authored-by: Pokechu22 --- Source/Core/Core/HW/DVD/AMMediaboard.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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);