stop annoying behavior of enabling cheats each time you open the ISOProperties dialog
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5037 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
eb38e858bf
commit
0b733d36c4
|
@ -422,6 +422,7 @@ void SetARCode_IsActive(bool active, size_t index)
|
||||||
|
|
||||||
void UpdateActiveList()
|
void UpdateActiveList()
|
||||||
{
|
{
|
||||||
|
bool old_value = SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats;
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = false;
|
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = false;
|
||||||
b_RanOnce = false;
|
b_RanOnce = false;
|
||||||
activeCodes.clear();
|
activeCodes.clear();
|
||||||
|
@ -430,7 +431,7 @@ void UpdateActiveList()
|
||||||
if (arCodes[i].active)
|
if (arCodes[i].active)
|
||||||
activeCodes.push_back(arCodes[i]);
|
activeCodes.push_back(arCodes[i]);
|
||||||
}
|
}
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = true;
|
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = old_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnableSelfLogging(bool enable)
|
void EnableSelfLogging(bool enable)
|
||||||
|
|
Loading…
Reference in New Issue