mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Fix CRC hacks not re-initialising after option change
This commit is contained in:
parent
0b5e0df35d
commit
c31c04d3db
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue