GSdx: Fix CRC hacks not re-initialising after option change

This commit is contained in:
refractionpcsx2 2015-06-17 22:25:43 +01:00
parent 0b5e0df35d
commit c31c04d3db
2 changed files with 5 additions and 4 deletions

View File

@ -44,6 +44,7 @@ GSState::GSState()
, m_crc(0) , m_crc(0)
, m_options(0) , m_options(0)
, m_frameskip(0) , m_frameskip(0)
, m_crcinited(false)
{ {
m_nativeres = !!theApp.GetConfig("nativeres", 1); m_nativeres = !!theApp.GetConfig("nativeres", 1);
@ -2305,7 +2306,7 @@ void GSState::SetGameCRC(uint32 crc, int options)
{ {
m_crc = crc; m_crc = crc;
m_options = options; m_options = options;
m_game = CRC::Lookup(m_crc_hack_level ? crc : 0); m_game = CRC::Lookup(crc);
} }
// //
@ -5416,11 +5417,10 @@ bool GSState::IsBadFrame(int& skip, int UserHacks_SkipDraw)
fi.TZTST = m_context->TEST.ZTST; fi.TZTST = m_context->TEST.ZTST;
static GetSkipCount map[CRC::TitleCount]; static GetSkipCount map[CRC::TitleCount];
static bool inited = false;
if(!inited) if (!m_crcinited)
{ {
inited = true; m_crcinited = true;
memset(map, 0, sizeof(map)); memset(map, 0, sizeof(map));

View File

@ -196,6 +196,7 @@ public:
uint32 m_crc; uint32 m_crc;
int m_options; int m_options;
int m_frameskip; int m_frameskip;
bool m_crcinited;
bool m_framelimit; bool m_framelimit;
CRC::Game m_game; CRC::Game m_game;
GSDump m_dump; GSDump m_dump;