Merge pull request #13816 from Tilka/fix_di_init

WII_IPC: fix homebrew that uses the disc drive
This commit is contained in:
Tilka 2025-07-19 20:13:18 +01:00 committed by GitHub
commit 5cc0a5a3be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,8 @@ enum
ARM_IRQFLAG = 0x38,
ARM_IRQMASK = 0x3c,
AHBPROT = 0x64,
GPIOB_OUT = 0xc0,
GPIOB_DIR = 0xc4,
GPIOB_IN = 0xc8,
@ -169,6 +171,9 @@ void WiiIPC::RegisterMMIO(MMIO::Mapping* mmio, u32 base)
0);
}));
// Dolphin currently does not emulate any hardware access restrictions.
mmio->Register(base | AHBPROT, MMIO::Constant<u32>(0xFFFFFFFF), MMIO::InvalidWrite<u32>());
mmio->Register(base | GPIOB_OUT, MMIO::DirectRead<u32>(&m_gpio_out.m_hex),
MMIO::ComplexWrite<u32>([](Core::System& system, u32, u32 val) {
auto& wii_ipc = system.GetWiiIPC();