From e229dc15496f0f4779277883dbbd0764d07dc226 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 25 Sep 2016 10:11:43 +0200 Subject: [PATCH] gsdx hack: move Resident Evil 4 to full level The CRC hack removes the fog, without the hack the screen turns green with D3D,, but the fog emulates correctly on OGL with hardware depth. --- plugins/GSdx/GSHwHack.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/plugins/GSdx/GSHwHack.cpp b/plugins/GSdx/GSHwHack.cpp index c69bd4572c..3905630781 100644 --- a/plugins/GSdx/GSHwHack.cpp +++ b/plugins/GSdx/GSHwHack.cpp @@ -218,23 +218,6 @@ bool GSC_CrashBandicootWoC(const GSFrameInfo& fi, int& skip) return true; } -bool GSC_ResidentEvil4(const GSFrameInfo& fi, int& skip) -{ - if(skip == 0) - { - if(fi.TME && fi.FBP == 0x03100 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x01c00 && fi.TPSM == PSM_PSMZ24) - { - skip = 176; - } - else if(fi.TME && fi.FBP ==0x03100 && (fi.TBP0==0x2a00 ||fi.TBP0==0x3480) && fi.TPSM == PSM_PSMCT32 && fi.FBMSK == 0) - { - skip = 1; - } - } - - return true; -} - bool GSC_SacredBlaze(const GSFrameInfo& fi, int& skip) { //Fix Sacred Blaze rendering glitches @@ -1297,6 +1280,23 @@ bool GSC_SteambotChronicles(const GSFrameInfo& fi, int& skip) // Correctly emulated on OpenGL but can be used as potential speed hack //////////////////////////////////////////////////////////////////////////////// +bool GSC_ResidentEvil4(const GSFrameInfo& fi, int& skip) +{ + if(skip == 0) + { + if(fi.TME && fi.FBP == 0x03100 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x01c00 && fi.TPSM == PSM_PSMZ24) + { + skip = 176; + } + else if(fi.TME && fi.FBP ==0x03100 && (fi.TBP0==0x2a00 ||fi.TBP0==0x3480) && fi.TPSM == PSM_PSMCT32 && fi.FBMSK == 0) + { + skip = 1; + } + } + + return true; +} + bool GSC_TalesOfAbyss(const GSFrameInfo& fi, int& skip) { if(skip == 0) @@ -2478,7 +2478,6 @@ void GSState::SetupCrcHack() lut[CRC::Oneechanbara2Special] = GSC_Oneechanbara2Special; lut[CRC::Onimusha3] = GSC_Onimusha3; lut[CRC::RedDeadRevolver] = GSC_RedDeadRevolver; - lut[CRC::ResidentEvil4] = GSC_ResidentEvil4; lut[CRC::SacredBlaze] = GSC_SacredBlaze; lut[CRC::SakuraTaisen] = GSC_SakuraTaisen; lut[CRC::SakuraWarsSoLongMyLove] = GSC_SakuraWarsSoLongMyLove; @@ -2524,6 +2523,7 @@ void GSState::SetupCrcHack() lut[CRC::ICO] = GSC_ICO; lut[CRC::LordOfTheRingsTwoTowers] = GSC_LordOfTheRingsTwoTowers; lut[CRC::Okami] = GSC_Okami; + lut[CRC::ResidentEvil4] = GSC_ResidentEvil4; lut[CRC::SimpsonsGame] = GSC_SimpsonsGame; lut[CRC::SuikodenTactics] = GSC_SuikodenTactics; lut[CRC::XE3] = GSC_XE3;