GSdx: fix for genji

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1355 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2009-06-11 00:08:23 +00:00
parent 4e20305fe2
commit bd229032c0
3 changed files with 19 additions and 0 deletions

View File

@ -133,6 +133,7 @@ CRC::Game CRC::m_games[] =
{0xFB236A46, SonicUnleashed, US}, {0xFB236A46, SonicUnleashed, US},
{0x4C7BB3C8, SimpsonsGame, Unknown}, {0x4C7BB3C8, SimpsonsGame, Unknown},
{0x4C94B32C, SimpsonsGame, Unknown}, {0x4C94B32C, SimpsonsGame, Unknown},
{0xD71B57F4, Genji, Unknown},
}; };
hash_map<uint32, CRC::Game*> CRC::m_map; hash_map<uint32, CRC::Game*> CRC::m_map;

View File

@ -65,6 +65,7 @@ public:
TalesOfAbyss, TalesOfAbyss,
SonicUnleashed, SonicUnleashed,
SimpsonsGame, SimpsonsGame,
Genji,
TitleCount, TitleCount,
}; };

View File

@ -2195,6 +2195,22 @@ bool GSC_SonicUnleashed(const GSFrameInfo& fi, int& skip)
return true; return true;
} }
bool GSC_Genji(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
if(fi.TME && fi.FBP == 0x01500 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00e00 && fi.TPSM == PSM_PSMZ16)
{
skip = 6; //
}
}
else
{
}
return true;
}
bool GSState::IsBadFrame(int& skip) bool GSState::IsBadFrame(int& skip)
{ {
GSFrameInfo fi; GSFrameInfo fi;
@ -2241,6 +2257,7 @@ bool GSState::IsBadFrame(int& skip)
map[CRC::Onimusha3] = GSC_Onimusha3; map[CRC::Onimusha3] = GSC_Onimusha3;
map[CRC::TalesOfAbyss] = GSC_TalesOfAbyss; map[CRC::TalesOfAbyss] = GSC_TalesOfAbyss;
map[CRC::SonicUnleashed] = GSC_SonicUnleashed; map[CRC::SonicUnleashed] = GSC_SonicUnleashed;
map[CRC::Genji] = GSC_Genji;
} }
// TODO: just set gsc in SetGameCRC once // TODO: just set gsc in SetGameCRC once