From cd7c24895c84ec2c792b63716a374d06750d6471 Mon Sep 17 00:00:00 2001 From: "refraction@gmail.com" Date: Sat, 13 Apr 2013 22:04:35 +0000 Subject: [PATCH] DMA/Path3 Masking: Shameful hack to make Wallace & Gromit in Project Zoo work. Game does something stupid, not sure how we will resolve it properly, but this will be harmless to any games not using Path3 masking. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5617 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/HwRead.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/HwRead.cpp b/pcsx2/HwRead.cpp index f6b34a02d5..42f58a3aa1 100644 --- a/pcsx2/HwRead.cpp +++ b/pcsx2/HwRead.cpp @@ -142,6 +142,14 @@ mem32_t __fastcall _hwRead32(u32 mem) if(mem == (D1_CHCR + 0x10) && CHECK_VIFFIFOHACK) return psHu32(mem) + (vif1ch.qwc * 16); + if((mem == GIF_CHCR) && !vif1ch.chcr.STR && gifRegs.stat.M3P && gifRegs.stat.APATH != 3) + { + //Hack for Wallace and Gromit Curse Project Zoo - Enabled the mask, then starts a new + //GIF DMA, the mask never comes off and it won't proceed until this is unset. + //Unsetting it works too but messes up other PATH3 games. + //If STR is already unset, it won't make the slightest difference. + return (psHu32(mem) & ~0x100); + } return psHu32(mem); }