From d09737dbb5b70657cfea4ac655f02b1df51c0b38 Mon Sep 17 00:00:00 2001 From: ivan89el <35658450+ivan89el@users.noreply.github.com> Date: Thu, 19 Jul 2018 22:33:06 +0500 Subject: [PATCH] GSdx: Adjust Spartan crc hack, add missing crc id. (#2510) Adjust Spartan crc hack: Combine/ease the hacks in to one. Only remove the glow/yellow bloom effect and don't skip any other effects that shouldn't be skipped. UI and some other post processing effects work properly now. Add crc id CrashBandicootWoC RU. --- plugins/GSdx/GSCrc.cpp | 1 + plugins/GSdx/GSHwHack.cpp | 23 ++++++----------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/plugins/GSdx/GSCrc.cpp b/plugins/GSdx/GSCrc.cpp index 4e6d635c4c..5fd5d40e9f 100644 --- a/plugins/GSdx/GSCrc.cpp +++ b/plugins/GSdx/GSCrc.cpp @@ -173,6 +173,7 @@ CRC::Game CRC::m_games[] = {0x103B5706, CrashBandicootWoC, US, 0}, // American Greatest Hits release {0x75182BE5, CrashBandicootWoC, US, 0}, {0x5188ABCA, CrashBandicootWoC, US, 0}, + {0x34E2EEC7, CrashBandicootWoC, RU, 0}, {0x3A03D62F, CrashBandicootWoC, EU, 0}, {0x013E349D, ResidentEvil4, US, 0}, {0xDBB7A559, ResidentEvil4, US, 0}, diff --git a/plugins/GSdx/GSHwHack.cpp b/plugins/GSdx/GSHwHack.cpp index 5e2016d552..06c9fac94f 100644 --- a/plugins/GSdx/GSHwHack.cpp +++ b/plugins/GSdx/GSHwHack.cpp @@ -246,25 +246,14 @@ bool GSC_Spartan(const GSFrameInfo& fi, int& skip) { if(skip == 0) { - if(g_crc_region == CRC::EU &&fi.TME && fi.FBP == 0x02000 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x00000 && fi.TPSM == PSM_PSMCT32) + if(fi.TME) { - skip = 107; - } - if(g_crc_region == CRC::JP && fi.TME && fi.FBP == 0x02180 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x2180 && fi.TPSM == PSM_PSMCT32) - { - skip = 3; - } - else - { - if(fi.TME) + // depth textures (bully, mgs3s1 intro, Front Mission 5) + if( (fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) || + // General, often problematic post processing + (GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) ) { - // depth textures (bully, mgs3s1 intro, Front Mission 5) - if( (fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) || - // General, often problematic post processing - (GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) ) - { - skip = 1; - } + skip = 2; } } }