From 2da8696b8dff968c08b990851ecfe67233fd4666 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 5 Nov 2013 15:36:18 +0000 Subject: [PATCH] fix some cheat related things I broke when refactoring it --- BizHawk.Client.Common/tools/CheatList.cs | 2 +- BizHawk.Client.EmuHawk/MainForm.cs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/BizHawk.Client.Common/tools/CheatList.cs b/BizHawk.Client.Common/tools/CheatList.cs index 49faa333e5..313a41db7e 100644 --- a/BizHawk.Client.Common/tools/CheatList.cs +++ b/BizHawk.Client.Common/tools/CheatList.cs @@ -355,7 +355,7 @@ namespace BizHawk.Client.Common } } - Changes = true; + Changes = false; return true; } diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 71f4baca06..7f0b1fdb1f 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -1661,14 +1661,11 @@ namespace BizHawk.Client.EmuHawk private void Cheats_Restart() { - if (GlobalWin.Tools.Has()) - { - GlobalWin.Tools.Restart(); - } - else + if (!GlobalWin.Tools.Has()) { Global.CheatList.NewList(GenerateDefaultCheatFilename()); } + //If Cheat tool is loaded, restarting will restart the list too anyway } //contains a mapping: profilename->exepath ; or null if the exe wasnt available