Stop Story Mode in F-Zero GX from crashing. Story mode still doesn't work though, it just stops.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4862 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2010-01-17 01:16:16 +00:00
parent b84a1823b2
commit b61b04352e
2 changed files with 3 additions and 2 deletions

View file

@ -53,6 +53,7 @@ extern u8 *base;
// These are guarenteed to point to "low memory" addresses (sub-32-bit).
extern u8 *m_pRAM;
extern u8 *m_pEXRAM;
extern u8 *m_pL1Cache;
enum

View file

@ -164,9 +164,9 @@ inline void ReadFromHardware(T &_var, u32 em_address, u32 effective_address, Mem
{
_var = bswap((*(const T*)&m_pRAM[em_address & RAM_MASK]));
}
else if (((em_address & 0xF0000000) == 0x90000000) ||
else if (m_pEXRAM && (((em_address & 0xF0000000) == 0x90000000) ||
((em_address & 0xF0000000) == 0xD0000000) ||
((em_address & 0xF0000000) == 0x10000000))
((em_address & 0xF0000000) == 0x10000000)))
{
_var = bswap((*(const T*)&m_pEXRAM[em_address & EXRAM_MASK]));
}