From c741ddd0827cbc57d83ff1e6e9cd2f3d22ac965e Mon Sep 17 00:00:00 2001 From: omegadox Date: Sat, 17 Oct 2009 00:32:22 +0000 Subject: [PATCH] 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 --- Source/Core/Core/Src/ActionReplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/Src/ActionReplay.cpp b/Source/Core/Core/Src/ActionReplay.cpp index fcaa6121b0..f370990063 100644 --- a/Source/Core/Core/Src/ActionReplay.cpp +++ b/Source/Core/Core/Src/ActionReplay.cpp @@ -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)