Merge pull request #13109 from Pokechu22/fifo-player-wii-bats

FifoPlayer: Set up additional BATs in Wii mode
This commit is contained in:
Tilka 2024-10-07 17:42:54 +01:00 committed by GitHub
commit 2b22e6ffc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -639,6 +639,16 @@ void FifoPlayer::LoadMemory()
ppc_state.spr[SPR_DBAT0L] = 0x00000002;
ppc_state.spr[SPR_DBAT1U] = 0xc0001fff;
ppc_state.spr[SPR_DBAT1L] = 0x0000002a;
if (m_File->GetIsWii())
{
ppc_state.spr[SPR_IBAT4U] = 0x90001fff;
ppc_state.spr[SPR_IBAT4L] = 0x10000002;
ppc_state.spr[SPR_DBAT4U] = 0x90001fff;
ppc_state.spr[SPR_DBAT4L] = 0x10000002;
ppc_state.spr[SPR_DBAT5U] = 0xd0001fff;
ppc_state.spr[SPR_DBAT5L] = 0x1000002a;
HID4(ppc_state).SBE = 1;
}
PowerPC::MSRUpdated(ppc_state);