From 6c4c4e316dc422894d071b8e68eca01eb2913cfb Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Wed, 10 Mar 2010 10:10:36 +0000 Subject: [PATCH] GSdx: - Hopefully hacked up the "wall of fog" problem in GoW2. Used an adapted patch from ZeroGravity. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2687 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSCrc.cpp | 3 ++- plugins/GSdx/GSState.cpp | 16 +++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/plugins/GSdx/GSCrc.cpp b/plugins/GSdx/GSCrc.cpp index e255c98167..ce02d40e82 100644 --- a/plugins/GSdx/GSCrc.cpp +++ b/plugins/GSdx/GSCrc.cpp @@ -146,6 +146,7 @@ CRC::Game CRC::m_games[] = {0xD71B57F4, Genji, Unknown, 0}, {0x23A97857, StarOcean3, US, 0}, {0xBEC32D49, StarOcean3, JP, 0}, + {0x8192A241, StarOcean3, JP, 0}, //NTSC JP special directors cut limited extra sugar on top edition (the special one :p) {0x23A97857, StarOcean3, JPUNDUB, 0}, {0xCC96CE93, ValkyrieProfile2, US, 0}, {0x774DE8E2, ValkyrieProfile2, JP, 0}, @@ -184,4 +185,4 @@ CRC::Game CRC::Lookup(uint32 crc) } return m_games[0]; -} +} \ No newline at end of file diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index ad8c00d341..2281fd3953 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -2307,23 +2307,17 @@ bool GSC_GodOfWar2(const GSFrameInfo& fi, int& skip) if(fi.TME) { if(fi.FBP == 0x00100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00100 && fi.TPSM == PSM_PSMCT16 // ntsc - || fi.FBP == 0x02100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x02100 && fi.TPSM == PSM_PSMCT16) // pal + || fi.FBP == 0x02100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x02100 && fi.TPSM == PSM_PSMCT16) // pal { skip = 29; // shadows } - else if(fi.FBP == 0x00500 && fi.FPSM == PSM_PSMCT24 && fi.TBP0 == 0x02100 && fi.TPSM == PSM_PSMCT32) // pal - { - // skip = 17; // only looks correct at native resolution - } - else if(fi.FBP == 0x01300 && fi.FPSM == PSM_PSMCT24 && fi.TBP0 == 0x00100 && fi.TPSM == PSM_PSMCT32) // ntsc - { - // skip = 15; // only looks correct at native resolution + if(fi.FBP == 0x00100 && fi.FPSM == PSM_PSMCT32 && (fi.TBP0 & 0x03000) == 0x03000 + && (fi.TPSM == PSM_PSMT8 || fi.TPSM == PSM_PSMT4) + && ((fi.TZTST == 2 && fi.FBMSK == 0x00FFFFFF) || (fi.TZTST == 1 && fi.FBMSK == 0x00FFFFFF) || (fi.TZTST == 3 && fi.FBMSK == 0xFF000000))){ + skip = 1; // wall of fog } } } - else - { - } return true; }