WriteARAM() revert, this should fix ssbb/u

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7481 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar 2011-04-23 13:35:29 +00:00
parent 35026f9de1
commit af5d5b5beb
1 changed files with 3 additions and 1 deletions

View File

@ -737,8 +737,10 @@ u8 ReadARAM(u32 _iAddress)
void WriteARAM(u8 value, u32 _uAddress)
{
//NOTICE_LOG(DSPINTERFACE, "WriteARAM 0x%08x", _uAddress);
//TODO: verify this on WII (SSBB/U)
if (g_ARAM.wii_mode)
g_ARAM.ptr[(_uAddress & 0x10000000)?(_uAddress & 0x13ffffff):(_uAddress & 0x01ffffff)] = value;
//g_ARAM.ptr[(_uAddress & 0x10000000)?(_uAddress & 0x13ffffff):(_uAddress & 0x01ffffff)] = value;
g_ARAM.ptr[(_uAddress | 0x10000000) & 0x13ffffff] = value;
else
g_ARAM.ptr[_uAddress & g_ARAM.mask] = value;
}