From 0b733d36c4f96281b747acc4f62e1e72c9235529 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 9 Feb 2010 06:48:16 +0000 Subject: [PATCH] stop annoying behavior of enabling cheats each time you open the ISOProperties dialog git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5037 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/ActionReplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/ActionReplay.cpp b/Source/Core/Core/Src/ActionReplay.cpp index b4d8dd4ab0..4fe84669f0 100644 --- a/Source/Core/Core/Src/ActionReplay.cpp +++ b/Source/Core/Core/Src/ActionReplay.cpp @@ -422,6 +422,7 @@ void SetARCode_IsActive(bool active, size_t index) void UpdateActiveList() { + bool old_value = SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats; SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = false; b_RanOnce = false; activeCodes.clear(); @@ -430,7 +431,7 @@ void UpdateActiveList() if (arCodes[i].active) activeCodes.push_back(arCodes[i]); } - SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = true; + SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats = old_value; } void EnableSelfLogging(bool enable)