summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authoromegadox <omegadox@gmail.com>2009-10-17 00:32:22 +0000
committeromegadox <omegadox@gmail.com>2009-10-17 00:32:22 +0000
commitc741ddd0827cbc57d83ff1e6e9cd2f3d22ac965e (patch)
tree30f926a9ec260b17cd4840735315f50ef89f549b /Source
parentbedc0b039e8bdb7183426d7e2d95ae91d6e4350f (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/ActionReplay.cpp2
1 files changed, 2 insertions, 0 deletions
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)