From 192973dcd71f8d2ca93f3f7def9ca69d2185d9a0 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 8 Feb 2020 11:02:43 -0600 Subject: [PATCH] Tastudio - hide N64 "fake analog" controls by default --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 6d82a16483..a11cc5bab6 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -12,6 +12,7 @@ using BizHawk.Emulation.Common.IEmulatorExtensions; using BizHawk.Client.Common; using BizHawk.Client.Common.MovieConversionExtensions; using BizHawk.Client.EmuHawk.ToolExtensions; +using BizHawk.Emulation.Cores.Nintendo.N64; namespace BizHawk.Client.EmuHawk { @@ -457,6 +458,18 @@ namespace BizHawk.Client.EmuHawk || c.Name.EndsWith("Block") || c.Name.EndsWith("Status")); + if (Emulator is N64) + { + var fakeAnalogControls = TasView.AllColumns + .Where(c => + c.Name.EndsWith("A Up") + || c.Name.EndsWith("A Down") + || c.Name.EndsWith("A Left") + || c.Name.EndsWith("A Right")); + + columnsToHide = columnsToHide.Concat(fakeAnalogControls); + } + foreach (var column in columnsToHide) { column.Visible = false;