Revert "GS-hw: Purge MidnightClub3 crc hacks."

This reverts commit f53fbd6282.
This commit is contained in:
JordanTheToaster 2022-08-25 09:56:46 +01:00 committed by refractionpcsx2
parent e65ef95027
commit 9d8b93a269
3 changed files with 21 additions and 0 deletions

View File

@ -225,6 +225,9 @@ const CRC::Game CRC::m_games[] =
{0xDDF76A98, BurnoutGames, JP, 0}, // BurnoutDominator
{0x8C9576B4, BurnoutGames, EU, 0}, // BurnoutDominator
{0x8C9C76B4, BurnoutGames, EU, 0}, // BurnoutDominator
{0x4A0E5B3A, MidnightClub3, US, 0}, // dub
{0xEBE1972D, MidnightClub3, EU, 0}, // dub
{0x60A42FF5, MidnightClub3, US, 0}, // remix
{0x43AB7214, TalesOfLegendia, US, 0},
{0x1F8640E0, TalesOfLegendia, JP, 0},
{0xE4F5DA2B, TalesOfLegendia, KO, 0},

View File

@ -50,6 +50,7 @@ public:
Lamune,
Manhunt2,
MetalSlug6,
MidnightClub3,
Okami,
Oneechanbara2Special,
PolyphonyDigitalGames,

View File

@ -390,6 +390,22 @@ bool GSC_BurnoutGames(const GSFrameInfo& fi, int& skip)
return true;
}
bool GSC_MidnightClub3(const GSFrameInfo& fi, int& skip)
{
if (skip == 0)
{
if (fi.TME && (fi.FBP > 0x01d00 && fi.FBP <= 0x02a00) && fi.FPSM == PSM_PSMCT32 && (fi.FBP >= 0x01600 && fi.FBP < 0x03260) && fi.TPSM == PSM_PSMT8H)
{
// Vram usage.
// Tested: tokyo default cruise.
// Move around a bit, stop car, wait as vram goes down, start moving again, vram spike.
skip = 1;
}
}
return true;
}
bool GSC_TalesOfLegendia(const GSFrameInfo& fi, int& skip)
{
if (skip == 0)
@ -831,6 +847,7 @@ void GSState::SetupCrcHack()
lut[CRC::KnightsOfTheTemple2] = GSC_KnightsOfTheTemple2;
lut[CRC::Kunoichi] = GSC_Kunoichi;
lut[CRC::Manhunt2] = GSC_Manhunt2;
lut[CRC::MidnightClub3] = GSC_MidnightClub3;
lut[CRC::SacredBlaze] = GSC_SacredBlaze;
lut[CRC::SakuraTaisen] = GSC_SakuraTaisen;
lut[CRC::SakuraWarsSoLongMyLove] = GSC_SakuraWarsSoLongMyLove;