Skip to content

Commit

Permalink
GSdx: Purge GSC_StarWarsBattlefront and GSC_StarWarsBattlefront2 crc …
Browse files Browse the repository at this point in the history
…hacks.

Channel shuffle emulates the effects correctly on all renders.
  • Loading branch information
lightningterror committed Dec 20, 2018
1 parent 6f6e5eb commit f0fec02
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
2 changes: 0 additions & 2 deletions plugins/GSdx/GSCrc.cpp
Expand Up @@ -396,8 +396,6 @@ CRC::Game CRC::m_games[] =
{0x879CDA5E, StarWarsForceUnleashed, US, 0},
{0x137C792E, StarWarsForceUnleashed, US, 0},
{0xDAF2145C, StarWarsForceUnleashed, EU, 0},
{0x503BF9E1, StarWarsBattlefront, NoRegion, 0}, // EU and US versions have the same CRC
{0x02F4B541, StarWarsBattlefront2, NoRegion, 0}, // EU and US versions have the same CRC
{0xA8DB29DF, BlackHawkDown, EU, 0},
{0x25FC361B, DevilMayCry3, US, 0}, // SE
{0x2F7D8AD5, DevilMayCry3, US, 0},
Expand Down
2 changes: 0 additions & 2 deletions plugins/GSdx/GSCrc.h
Expand Up @@ -150,8 +150,6 @@ class CRC
SpyroEternalNight,
SpyroNewBeginning,
StarOcean3,
StarWarsBattlefront,
StarWarsBattlefront2,
StarWarsForceUnleashed,
SteambotChronicles,
SuikodenTactics,
Expand Down
32 changes: 0 additions & 32 deletions plugins/GSdx/Renderers/HW/GSHwHack.cpp
Expand Up @@ -1141,36 +1141,6 @@ bool GSC_DeathByDegreesTekkenNinaWilliams(const GSFrameInfo& fi, int& skip)
return true;
}

bool GSC_StarWarsBattlefront(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
if(fi.TME && (fi.FBP > 0x0 && fi.FBP < 0x01000) && fi.FPSM == PSM_PSMCT32 && (fi.TBP0 > 0x02000 && fi.TBP0 < 0x03000) && fi.TPSM == PSM_PSMT8)
{
skip = 1;
}
}

return true;
}

bool GSC_StarWarsBattlefront2(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
if(fi.TME && (fi.FBP > 0x01000 && fi.FBP < 0x02000) && fi.FPSM == PSM_PSMCT32 && (fi.TBP0 > 0x0 && fi.TBP0 < 0x01000) && fi.TPSM == PSM_PSMT8)
{
skip = 1;
}
if(fi.TME && (fi.FBP > 0x01000 && fi.FBP < 0x02000) && fi.FPSM == PSM_PSMZ32 && (fi.TBP0 > 0x0 && fi.TBP0 < 0x01000) && fi.TPSM == PSM_PSMT8)
{
skip = 1;
}
}

return true;
}

bool GSC_Okami(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
Expand Down Expand Up @@ -2148,8 +2118,6 @@ void GSState::SetupCrcHack()
// Channel Effect
lut[CRC::DeathByDegreesTekkenNinaWilliams] = GSC_DeathByDegreesTekkenNinaWilliams;
lut[CRC::MetalGearSolid3] = GSC_MetalGearSolid3; // + accurate blending
lut[CRC::StarWarsBattlefront] = GSC_StarWarsBattlefront;
lut[CRC::StarWarsBattlefront2] = GSC_StarWarsBattlefront2;

// Dedicated shader for channel effect
lut[CRC::TalesOfAbyss] = GSC_TalesOfAbyss;
Expand Down

0 comments on commit f0fec02

Please sign in to comment.