New define "NO_CRC_HACKS", for testing how games work without hacks easily. 
Gets enabled together with the no cache define but can be toggled individually as well.

Also I've been told to mention that these changes are not directly benefiting the end user.
Gamers: This doesn't fix your DragonBall, okay? :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4636 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2011-05-09 16:45:54 +00:00
parent 5785ba7914
commit b2ee693b25
4 changed files with 9 additions and 5 deletions

View File

@ -252,13 +252,13 @@ CRC::Game CRC::Lookup(uint32 crc)
m_map[m_games[i].crc] = &m_games[i];
}
}
#ifndef NO_CRC_HACKS
hash_map<uint32, Game*>::iterator i = m_map.find(crc);
if(i != m_map.end())
{
return *i->second;
}
#endif
return m_games[0];
}

View File

@ -556,7 +556,7 @@ protected:
void Draw()
{
#ifndef HW_NO_TEXTURE_CACHE
#ifndef NO_CRC_HACKS
if(IsBadFrame(m_skip, m_userhacks_skipdraw)) return;
#endif

View File

@ -25,7 +25,7 @@
//#define DISABLE_BITMASKING
//#define DISABLE_COLCLAMP
//#define DISABLE_DATE
//see stdafx.h for #define HW_NO_TEXTURE_CACHE
//see stdafx.h for #define HW_NO_TEXTURE_CACHE and #define NO_CRC_HACKS
//#define Offset_ST // Fixes Persona3 mini map alignment which is off even in software rendering
//#define Offset_UV // Fixes / breaks various titles

View File

@ -329,4 +329,8 @@ extern void* vmalloc(size_t size, bool code);
extern void vmfree(void* ptr, size_t size);
#define USE_UPSCALE_HACKS // Hacks intended to fix upscaling / rendering glitches in HW renderers
//#define HW_NO_TEXTURE_CACHE // Slow but fixes a lot of bugs
//#define HW_NO_TEXTURE_CACHE // Slow but fixes a lot of bugs
//#define NO_CRC_HACKS // Disable all game specific hacks
#ifdef HW_NO_TEXTURE_CACHE
#define NO_CRC_HACKS
#endif