GSdx: Move CRC hacks for Soul Calibur 2&3 to DX level.

Add missing CRC ids for Soul Calibur 2 and 3.
Move CRC hacks to DX level. They are not needed anymore on OpenGL since
Depth Emulation fixes depth issues (shadows).
This commit is contained in:
lightningterror 2018-01-08 21:01:36 +01:00 committed by Akash
parent 36a1c7a265
commit 29ef586f91
2 changed files with 26 additions and 44 deletions

View File

@ -491,13 +491,17 @@ CRC::Game CRC::m_games[] =
{0xC4D0FACC, SDGundamGGeneration, JP, 0}, // cutie comment {0xC4D0FACC, SDGundamGGeneration, JP, 0}, // cutie comment
{0xBBDE6926, SDGundamGGeneration, JP, 0}, // cutie comment {0xBBDE6926, SDGundamGGeneration, JP, 0}, // cutie comment
{0x49D60A00, SDGundamGGeneration, JP, 0}, //NEO {0x49D60A00, SDGundamGGeneration, JP, 0}, //NEO
{0x86C57952, SoulCalibur2, JP, 0},
{0x83AFB38A, SoulCalibur2, KO, 0}, {0x83AFB38A, SoulCalibur2, KO, 0},
{0xE1B01308, SoulCalibur2, US, 0}, {0xE1B01308, SoulCalibur2, US, 0},
{0x632A5116, SoulCalibur2, EU, 0},
{0xFB8554A0, SoulCalibur3, JP, 0}, {0xFB8554A0, SoulCalibur3, JP, 0},
{0x7C7B9E71, SoulCalibur3, JP, 0},
{0x027C604C, SoulCalibur3, US, 0}, {0x027C604C, SoulCalibur3, US, 0},
{0x24090A12, SoulCalibur3, EU, 0}, {0x24090A12, SoulCalibur3, EU, 0},
{0x37B99B14, SoulCalibur3, KO, 0}, {0x3BA95B70, SoulCalibur3, EU, 0},
{0xBC5480A3, SoulCalibur3, EU, 0}, {0xBC5480A3, SoulCalibur3, EU, 0},
{0x37B99B14, SoulCalibur3, KO, 0},
{0xFC0F8A5B, Simple2000Vol114, JP, 0}, {0xFC0F8A5B, Simple2000Vol114, JP, 0},
{0x0098F740, SeintoSeiya, NoRegion, 0}, // cutie comment {0x0098F740, SeintoSeiya, NoRegion, 0}, // cutie comment
{0xBDD9BAAD, UrbanReign, US, 0}, // cutie comment {0xBDD9BAAD, UrbanReign, US, 0}, // cutie comment

View File

@ -47,9 +47,6 @@ bool GSC_GiTS(const GSFrameInfo& fi, int& skip)
skip = 1315; skip = 1315;
} }
} }
else
{
}
return true; return true;
} }
@ -1108,44 +1105,6 @@ bool GSC_TalesofSymphonia(const GSFrameInfo& fi, int& skip)
return true; return true;
} }
bool GSC_SoulCalibur2(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
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)) )
{
skip = 2;
}
}
}
return true;
}
bool GSC_SoulCalibur3(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
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)) )
{
skip = 2;
}
}
}
return true;
}
bool GSC_Simple2000Vol114(const GSFrameInfo& fi, int& skip) bool GSC_Simple2000Vol114(const GSFrameInfo& fi, int& skip)
{ {
if(skip == 0) if(skip == 0)
@ -1766,6 +1725,25 @@ bool GSC_RadiataStories(const GSFrameInfo& fi, int& skip)
return true; return true;
} }
bool GSC_SoulCalibur2and3(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
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)) )
{
skip = 2;
}
}
}
return true;
}
bool GSC_SuikodenTactics(const GSFrameInfo& fi, int& skip) bool GSC_SuikodenTactics(const GSFrameInfo& fi, int& skip)
{ {
if(skip == 0) if(skip == 0)
@ -2429,8 +2407,6 @@ void GSState::SetupCrcHack()
lut[CRC::ShadowofRome] = GSC_ShadowofRome; lut[CRC::ShadowofRome] = GSC_ShadowofRome;
lut[CRC::ShinOnimusha] = GSC_ShinOnimusha; lut[CRC::ShinOnimusha] = GSC_ShinOnimusha;
lut[CRC::Simple2000Vol114] = GSC_Simple2000Vol114; lut[CRC::Simple2000Vol114] = GSC_Simple2000Vol114;
lut[CRC::SoulCalibur2] = GSC_SoulCalibur2;
lut[CRC::SoulCalibur3] = GSC_SoulCalibur3;
lut[CRC::Spartan] = GSC_Spartan; lut[CRC::Spartan] = GSC_Spartan;
lut[CRC::StarWarsForceUnleashed] = GSC_StarWarsForceUnleashed; lut[CRC::StarWarsForceUnleashed] = GSC_StarWarsForceUnleashed;
lut[CRC::SteambotChronicles] = GSC_SteambotChronicles; lut[CRC::SteambotChronicles] = GSC_SteambotChronicles;
@ -2475,6 +2451,8 @@ void GSState::SetupCrcHack()
lut[CRC::ICO] = GSC_ICO; lut[CRC::ICO] = GSC_ICO;
lut[CRC::LordOfTheRingsTwoTowers] = GSC_LordOfTheRingsTwoTowers; lut[CRC::LordOfTheRingsTwoTowers] = GSC_LordOfTheRingsTwoTowers;
lut[CRC::Okami] = GSC_Okami; lut[CRC::Okami] = GSC_Okami;
lut[CRC::SoulCalibur2] = GSC_SoulCalibur2and3;
lut[CRC::SoulCalibur3] = GSC_SoulCalibur2and3;
lut[CRC::SuikodenTactics] = GSC_SuikodenTactics; lut[CRC::SuikodenTactics] = GSC_SuikodenTactics;
lut[CRC::XE3] = GSC_XE3; lut[CRC::XE3] = GSC_XE3;