mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Disable CRC hacks: Yet cleaner, better and more generic. Thx to sudonim.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5321 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
ae9c7791c2
commit
3b2944fe45
|
@ -254,7 +254,7 @@ void GSRendererHW::Draw()
|
||||||
s_n++;
|
s_n++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!userHacks_DisableCrcHacks && m_hacks.m_oi && !(this->*m_hacks.m_oi)(rt->m_texture, ds->m_texture, tex))
|
if(m_hacks.m_oi && !(this->*m_hacks.m_oi)(rt->m_texture, ds->m_texture, tex))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2229,7 +2229,7 @@ void GSState::SetGameCRC(uint32 crc, int options)
|
||||||
{
|
{
|
||||||
m_crc = crc;
|
m_crc = crc;
|
||||||
m_options = options;
|
m_options = options;
|
||||||
m_game = CRC::Lookup(crc);
|
m_game = CRC::Lookup(userHacks_DisableCrcHacks ? 0 : crc);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -5320,7 +5320,7 @@ bool GSState::IsBadFrame(int& skip, int UserHacks_SkipDraw)
|
||||||
#ifdef ENABLE_DYNAMIC_CRC_HACK
|
#ifdef ENABLE_DYNAMIC_CRC_HACK
|
||||||
bool res=false; if(IsInvokedDynamicCrcHack(fi, skip, g_crc_region, res, m_crc)){ if( !res ) return false; } else
|
bool res=false; if(IsInvokedDynamicCrcHack(fi, skip, g_crc_region, res, m_crc)){ if( !res ) return false; } else
|
||||||
#endif
|
#endif
|
||||||
if(gsc && !userHacks_DisableCrcHacks && !gsc(fi, skip))
|
if(gsc && !gsc(fi, skip))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue