mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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
Block a user