Working on my backlog: GSdx CRC patches.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5705 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2.code 2013-07-23 13:55:38 +00:00
parent d3e1e4da0d
commit 1c9146b07e
3 changed files with 18 additions and 0 deletions

View File

@ -140,8 +140,10 @@ CRC::Game CRC::m_games[] =
{0x6810C3BC, GT3, CH, 0}, //GRAN TURISMO Concept 2002 Tokyo-Geneva
{0x85AE91B3, GT3, US, 0},
{0xC220951A, GT3, NoRegion, 0},
{0x9DE5CF65, GT3, JP, 0}, //Gran Turismo 3: A-spec
{0x60013EBD, GTConcept, EU, 0},
{0xB590CE04, GTConcept, NoRegion, 0},
{0x0EEF32A3, GTConcept, KO, 0}, //Gran Turismo Concept 2002 Tokyo-Seoul
{0xC164550A, WildArms5, JPUNDUB, 0},
{0xC1640D2C, WildArms5, US, 0},
{0x0FCF8FE4, WildArms5, EU, 0},
@ -501,6 +503,7 @@ CRC::Game CRC::m_games[] =
{0xBDD9BAAD, UrbanReign, US, 0}, // cutie comment
{0xAE4BEBD3, UrbanReign, EU, 0},
{0x9F391882, SteambotChronicles, US, 0},
{0x06A7506A, SacredBlaze, JP, 0},
};
hash_map<uint32, CRC::Game*> CRC::m_map;

View File

@ -174,6 +174,7 @@ public:
SeintoSeiya,
UrbanReign,
SteambotChronicles,
SacredBlaze,
TitleCount,
};

View File

@ -3353,6 +3353,19 @@ bool GSC_ResidentEvil4(const GSFrameInfo& fi, int& skip)
return true;
}
bool GSC_SacredBlaze(const GSFrameInfo& fi, int& skip)
{
//Fix Sacred Blaze rendering glitches
if(skip == 0)
{
if(fi.TME && (fi.FBP==0x0000 || fi.FBP==0x0e00) && (fi.TBP0==0x2880 || fi.TBP0==0x2a80 ) && fi.FPSM==fi.TPSM && fi.TPSM == PSM_PSMCT32 && fi.TPSM ==0 && fi.FBMSK == 0x0)
{
skip = 1;
}
}
return true;
}
bool GSC_Spartan(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
@ -5400,6 +5413,7 @@ bool GSState::IsBadFrame(int& skip, int UserHacks_SkipDraw)
map[CRC::Simple2000Vol114] = GSC_Simple2000Vol114;
map[CRC::UrbanReign] = GSC_UrbanReign;
map[CRC::SteambotChronicles] = GSC_SteambotChronicles;
map[CRC::SacredBlaze] = GSC_SacredBlaze;
}
// TODO: just set gsc in SetGameCRC once