Make ActionReplay update codes safely, should prevent crashes when applying code changes to fast.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4431 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox 2009-10-17 00:32:22 +00:00
parent bedc0b039e
commit c741ddd082

View File

@ -418,6 +418,7 @@ void SetARCode_IsActive(bool active, size_t index)
void UpdateActiveList()
{
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = false;
b_RanOnce = false;
activeCodes.clear();
for (size_t i = 0; i < arCodes.size(); i++)
@ -425,6 +426,7 @@ void UpdateActiveList()
if (arCodes[i].active)
activeCodes.push_back(arCodes[i]);
}
SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = true;
}
void EnableSelfLogging(bool enable)