added some code to avoid asserts :)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2632 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2009-03-09 17:25:57 +00:00
parent 2ebc373a3b
commit e4b6b4c583
1 changed files with 16 additions and 0 deletions

View File

@ -212,6 +212,12 @@ void CEXIIPL::TransferByte(u8& _uByte)
{
DEBUG_LOG(EXPANSIONINTERFACE, "EXI IPL-DEV: UART");
}
else if (((m_uAddress & 0x7FFFFF00) == 0x21000000) ||
((m_uAddress & 0x7FFFFF00) == 0x21000100) ||
((m_uAddress & 0x7FFFFF00) == 0x21000800))
{
ERROR_LOG(EXPANSIONINTERFACE, "EXI IPL-DEV: RTC flags (WII only) - not implemented");
}
else
{
//_dbg_assert_(EXPANSIONINTERFACE, 0);
@ -270,6 +276,16 @@ void CEXIIPL::TransferByte(u8& _uByte)
else
_uByte = 0x01; // dunno
}
else if (((m_uAddress & 0x7FFFFF00) == 0x21000000) ||
((m_uAddress & 0x7FFFFF00) == 0x21000100) ||
((m_uAddress & 0x7FFFFF00) == 0x21000800))
{
// WII only RTC flags... afaik just the wii menu initialize it
// if (m_uAddress & 0x80000000)
// m_SRAM.p_SRAM[(m_uAddress & 0x3F) + m_uRWOffset] = _uByte;
// else
// _uByte = m_SRAM.p_SRAM[(m_uAddress & 0x3F) + m_uRWOffset];
}
m_uRWOffset++;
}
m_uPosition++;