Merge pull request #2226 from magumagu/restore-wpar-mask

Restore masking to gather pipe address checks.
This commit is contained in:
magumagu 2015-03-19 11:02:45 -07:00
commit 337f89959b
1 changed files with 4 additions and 2 deletions

View File

@ -237,8 +237,10 @@ __forceinline static void WriteToHardware(u32 em_address, const T data)
if (!BitSet32(0xCFC)[segment] && performTranslation) if (!BitSet32(0xCFC)[segment] && performTranslation)
{ {
// First, let's check for FIFO writes, since they are probably the most common // First, let's check for FIFO writes, since they are probably the most common
// reason we end up in this function: // reason we end up in this function.
if (flag == FLAG_WRITE && em_address == 0xCC008000) // Note that we must mask the address to correctly emulate certain games;
// Pac-Man World 3 in particular is affected by this.
if (flag == FLAG_WRITE && (em_address & 0xFFFFF000) == 0xCC008000)
{ {
switch (sizeof(T)) switch (sizeof(T))
{ {