Update Source/Core/Core/HW/DVD/AMMediaboard.cpp

Co-authored-by: Pokechu22 <pokechu022@gmail.com>
This commit is contained in:
crediar 2025-08-04 15:29:19 +02:00 committed by GitHub
commit 92265a7158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -427,19 +427,16 @@ u32 ExecuteCommand(std::array<u32, 3>& DICMDBUF, u32 address, u32 length)
} }
} }
DICMDBUF[0] <<= 24; u32 command = DICMDBUF[0] << 24;
DICMDBUF[1] <<= 2; u32 offset = DICMDBUF[1] << 2;
// SegaBoot adds bits for some reason to offset/length // SegaBoot adds bits for some reason to offset/length
// also adds 0x20 to offset // also adds 0x20 to offset
if (DICMDBUF[1] == 0x00100440) if (offset == 0x00100440)
{ {
s_segaboot = true; s_segaboot = true;
} }
u32 command = DICMDBUF[0];
u32 offset = DICMDBUF[1];
INFO_LOG_FMT(DVDINTERFACE_AMMB, INFO_LOG_FMT(DVDINTERFACE_AMMB,
"GC-AM: {:08x} {:08x} DMA=addr:{:08x},len:{:08x} Keys: {:08x} {:08x} {:08x}", "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); command, offset, address, length, s_GCAM_key_a, s_GCAM_key_b, s_GCAM_key_c);