Skip to content

Commit

Permalink
Revert "GS-hw: Purge MidnightClub3 crc hacks."
Browse files Browse the repository at this point in the history
This reverts commit f53fbd6.
  • Loading branch information
JordanTheToaster authored and refractionpcsx2 committed Aug 25, 2022
1 parent e65ef95 commit 9d8b93a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pcsx2/GS/GSCrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions pcsx2/GS/GSCrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class CRC
Lamune,
Manhunt2,
MetalSlug6,
MidnightClub3,
Okami,
Oneechanbara2Special,
PolyphonyDigitalGames,
Expand Down
17 changes: 17 additions & 0 deletions pcsx2/GS/Renderers/HW/GSHwHack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9d8b93a

Please sign in to comment.