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.
This commit is contained in:
ivan89el 2018-07-19 22:33:06 +05:00 committed by lightningterror
parent 6d1d32cd83
commit d09737dbb5
2 changed files with 7 additions and 17 deletions

View File

@ -173,6 +173,7 @@ CRC::Game CRC::m_games[] =
{0x103B5706, CrashBandicootWoC, US, 0}, // American Greatest Hits release {0x103B5706, CrashBandicootWoC, US, 0}, // American Greatest Hits release
{0x75182BE5, CrashBandicootWoC, US, 0}, {0x75182BE5, CrashBandicootWoC, US, 0},
{0x5188ABCA, CrashBandicootWoC, US, 0}, {0x5188ABCA, CrashBandicootWoC, US, 0},
{0x34E2EEC7, CrashBandicootWoC, RU, 0},
{0x3A03D62F, CrashBandicootWoC, EU, 0}, {0x3A03D62F, CrashBandicootWoC, EU, 0},
{0x013E349D, ResidentEvil4, US, 0}, {0x013E349D, ResidentEvil4, US, 0},
{0xDBB7A559, ResidentEvil4, US, 0}, {0xDBB7A559, ResidentEvil4, US, 0},

View File

@ -246,25 +246,14 @@ bool GSC_Spartan(const GSFrameInfo& fi, int& skip)
{ {
if(skip == 0) 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; // 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) ||
if(g_crc_region == CRC::JP && fi.TME && fi.FBP == 0x02180 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x2180 && fi.TPSM == PSM_PSMCT32) // General, often problematic post processing
{ (GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) )
skip = 3;
}
else
{
if(fi.TME)
{ {
// depth textures (bully, mgs3s1 intro, Front Mission 5) skip = 2;
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;
}
} }
} }
} }