a few nitpick cleanups in Tastudio code

This commit is contained in:
adelikat 2020-04-27 16:51:42 -05:00
parent b3637c87fc
commit 80eacf88eb
1 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ namespace BizHawk.Client.EmuHawk
TasView.LastSelectedIndex ?? 0 - TasView.FirstSelectedIndex ?? 0 + 1); TasView.LastSelectedIndex ?? 0 - TasView.FirstSelectedIndex ?? 0 + 1);
//var macroTool = Tools.Load<MacroInputTool>(false); //var macroTool = Tools.Load<MacroInputTool>(false);
var macroTool = new MacroInputTool() { Config = Global.Config }; var macroTool = new MacroInputTool { Config = Config };
macroTool.SaveMacroAs(macro); macroTool.SaveMacroAs(macro);
} }
@ -235,7 +235,7 @@ namespace BizHawk.Client.EmuHawk
} }
//var macroTool = Tools.Load<MacroInputTool>(false); //var macroTool = Tools.Load<MacroInputTool>(false);
var macroTool = new MacroInputTool() { Config = Global.Config }; var macroTool = new MacroInputTool { Config = Config };
var macro = macroTool.LoadMacro(Emulator, Tools); var macro = macroTool.LoadMacro(Emulator, Tools);
if (macro != null) if (macro != null)
{ {
@ -261,7 +261,7 @@ namespace BizHawk.Client.EmuHawk
|| Emulator is Emulation.Cores.Nintendo.SubGBHawk.SubGBHawk) || 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); 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); GoToFrame(CurrentTasMovie.InputLogLength - 1);
} }