From 6889a72ba2d9ea2d6e5ff6346e0e64671797b7a2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 6 Dec 2016 11:10:50 -0600 Subject: [PATCH] a bit more cleanup of MovieZone.cs --- BizHawk.Client.EmuHawk/tools/Macros/MovieZone.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Macros/MovieZone.cs b/BizHawk.Client.EmuHawk/tools/Macros/MovieZone.cs index e2174bfb0e..b5f4748815 100644 --- a/BizHawk.Client.EmuHawk/tools/Macros/MovieZone.cs +++ b/BizHawk.Client.EmuHawk/tools/Macros/MovieZone.cs @@ -28,10 +28,6 @@ namespace BizHawk.Client.EmuHawk private Bk2ControllerAdapter controller; private Bk2ControllerAdapter targetController; - public MovieZone() - { - } - public MovieZone(IMovie movie, int start, int length, string key = "") { var lg = Global.MovieSession.LogGeneratorInstance() as Bk2LogEntryGenerator; @@ -54,7 +50,7 @@ namespace BizHawk.Client.EmuHawk // Get a IController that only contains buttons in key. string[] keys = key.Split('|'); - ControllerDefinition d = new ControllerDefinition(); + var d = new ControllerDefinition(); for (int i = 0; i < keys.Length; i++) { if (Global.Emulator.ControllerDefinition.BoolButtons.Contains(keys[i])) @@ -178,7 +174,9 @@ namespace BizHawk.Client.EmuHawk // Or do this, if TAStudio has to be open. if (GlobalWin.Tools.IsLoaded()) + { (GlobalWin.Tools.Get() as TAStudio).GoToFrame(Start); + } GlobalWin.Tools.UpdateBefore(); GlobalWin.Tools.UpdateAfter();