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:
avihal 2012-06-20 20:45:24 +00:00
parent ae9c7791c2
commit 3b2944fe45
2 changed files with 3 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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;
} }