Merge pull request #2226 from magumagu/restore-wpar-mask
Restore masking to gather pipe address checks.
This commit is contained in:
commit
337f89959b
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue