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:
parent
bedc0b039e
commit
c741ddd082
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue