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:
Shawn Hoffman 2010-02-09 06:48:16 +00:00
parent eb38e858bf
commit 0b733d36c4
1 changed files with 2 additions and 1 deletions

View File

@ -422,6 +422,7 @@ void SetARCode_IsActive(bool active, size_t index)
void UpdateActiveList()
{
bool old_value = SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats;
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = false;
b_RanOnce = false;
activeCodes.clear();
@ -430,7 +431,7 @@ void UpdateActiveList()
if (arCodes[i].active)
activeCodes.push_back(arCodes[i]);
}
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = true;
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = old_value;
}
void EnableSelfLogging(bool enable)