From 80eacf88ebb2a7cac95fd0c4e29bc3c139d801d0 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 27 Apr 2020 16:51:42 -0500 Subject: [PATCH] a few nitpick cleanups in Tastudio code --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index d903b05925..b8901702e1 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -223,7 +223,7 @@ namespace BizHawk.Client.EmuHawk TasView.LastSelectedIndex ?? 0 - TasView.FirstSelectedIndex ?? 0 + 1); //var macroTool = Tools.Load(false); - var macroTool = new MacroInputTool() { Config = Global.Config }; + var macroTool = new MacroInputTool { Config = Config }; macroTool.SaveMacroAs(macro); } @@ -235,7 +235,7 @@ namespace BizHawk.Client.EmuHawk } //var macroTool = Tools.Load(false); - var macroTool = new MacroInputTool() { Config = Global.Config }; + var macroTool = new MacroInputTool { Config = Config }; var macro = macroTool.LoadMacro(Emulator, Tools); if (macro != null) { @@ -261,7 +261,7 @@ namespace BizHawk.Client.EmuHawk || Emulator is Emulation.Cores.Nintendo.SubGBHawk.SubGBHawk) { var result = MessageBox.Show("This core requires emulation to be on the last frame when writing the movie, otherwise movie length may appear incorrect.\nSeek there?", "Export movie", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); - if (result == DialogResult.OK) + if (result.IsOk()) { GoToFrame(CurrentTasMovie.InputLogLength - 1); }