From 388e18a8f54d8931c12812ae28c1820d5c340989 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 2 May 2020 19:51:33 -0500 Subject: [PATCH] consistently use ToolFormBase on tools --- src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/GBA/GBAGPUView.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/GameShark.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/Genesis/VDPViewer.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/NES/NESNameTableViewer.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/NES/NESPPU.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/PCE/PCEBGViewer.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/PCE/PCETileViewer.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/SMS/VDPViewer.cs | 2 +- src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs index 2fbeb47aec..0f19a6a880 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs @@ -12,7 +12,7 @@ using BizHawk.Common; namespace BizHawk.Client.EmuHawk { - public partial class GbGpuView : Form, IToolFormAutoConfig + public partial class GbGpuView : ToolFormBase, IToolFormAutoConfig { [RequiredService] public IGameboyCommon Gb { get; private set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs b/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs index 2582833dfc..cb7c92357b 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Cores.Consoles.Nintendo.Gameboy; namespace BizHawk.Client.EmuHawk { - public partial class GBPrinterView : Form, IToolFormAutoConfig + public partial class GBPrinterView : ToolFormBase, IToolFormAutoConfig { private const int PaperWidth = 160; diff --git a/src/BizHawk.Client.EmuHawk/tools/GBA/GBAGPUView.cs b/src/BizHawk.Client.EmuHawk/tools/GBA/GBAGPUView.cs index 3120b570a3..95a3ffd901 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GBA/GBAGPUView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GBA/GBAGPUView.cs @@ -12,7 +12,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class GbaGpuView : Form, IToolFormAutoConfig + public partial class GbaGpuView : ToolFormBase, IToolFormAutoConfig { [RequiredService] private IGBAGPUViewable GBA { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/GameShark.cs b/src/BizHawk.Client.EmuHawk/tools/GameShark.cs index 744a33462f..e6d3beffd5 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GameShark.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GameShark.cs @@ -12,7 +12,7 @@ using BizHawk.Client.Common.cheats; namespace BizHawk.Client.EmuHawk { [Tool(true, new[] { "GB", "GBA", "GEN", "N64", "NES", "PSX", "SAT", "SMS", "SNES" }, new[] { "Snes9x" })] - public partial class GameShark : Form, IToolForm, IToolFormAutoConfig + public partial class GameShark : ToolFormBase, IToolFormAutoConfig { [RequiredService] // ReSharper disable once UnusedAutoPropertyAccessor.Local diff --git a/src/BizHawk.Client.EmuHawk/tools/Genesis/VDPViewer.cs b/src/BizHawk.Client.EmuHawk/tools/Genesis/VDPViewer.cs index c51b973746..d2b6ce29c7 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Genesis/VDPViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Genesis/VDPViewer.cs @@ -10,7 +10,7 @@ using BizHawk.Common; namespace BizHawk.Client.EmuHawk { - public partial class GenVdpViewer : Form, IToolFormAutoConfig + public partial class GenVdpViewer : ToolFormBase, IToolFormAutoConfig { [RequiredService] private GPGX Emu { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs b/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs index 17350709b6..b795aa4739 100644 --- a/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs +++ b/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs @@ -15,7 +15,7 @@ using ICSharpCode.SharpZipLib.Zip; namespace BizHawk.Client.EmuHawk { - public partial class NESMusicRipper : Form, IToolFormAutoConfig + public partial class NESMusicRipper : ToolFormBase, IToolFormAutoConfig { [RequiredService] private NES Nes { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/NES/NESNameTableViewer.cs b/src/BizHawk.Client.EmuHawk/tools/NES/NESNameTableViewer.cs index 6b76356adf..dbef147a91 100644 --- a/src/BizHawk.Client.EmuHawk/tools/NES/NESNameTableViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/NES/NESNameTableViewer.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class NESNameTableViewer : Form, IToolFormAutoConfig + public partial class NESNameTableViewer : ToolFormBase, IToolFormAutoConfig { // TODO: // Show Scroll Lines + UI Toggle diff --git a/src/BizHawk.Client.EmuHawk/tools/NES/NESPPU.cs b/src/BizHawk.Client.EmuHawk/tools/NES/NESPPU.cs index d5aff972c8..718e2dfc0e 100644 --- a/src/BizHawk.Client.EmuHawk/tools/NES/NESPPU.cs +++ b/src/BizHawk.Client.EmuHawk/tools/NES/NESPPU.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class NesPPU : Form, IToolFormAutoConfig + public partial class NesPPU : ToolFormBase, IToolFormAutoConfig { // TODO: // If 8/16 sprite mode, mouse over should put 32x64 version of sprite diff --git a/src/BizHawk.Client.EmuHawk/tools/PCE/PCEBGViewer.cs b/src/BizHawk.Client.EmuHawk/tools/PCE/PCEBGViewer.cs index 7a27363017..56907cfc5b 100644 --- a/src/BizHawk.Client.EmuHawk/tools/PCE/PCEBGViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/PCE/PCEBGViewer.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class PceBgViewer : Form, IToolFormAutoConfig + public partial class PceBgViewer : ToolFormBase, IToolFormAutoConfig { [RequiredService] private PCEngine PCE { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs b/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs index 481f841a28..ddc2fb54d3 100644 --- a/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs +++ b/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs @@ -12,7 +12,7 @@ using ICSharpCode.SharpZipLib.Zip; namespace BizHawk.Client.EmuHawk { - public partial class PCESoundDebugger : Form, IToolFormAutoConfig + public partial class PCESoundDebugger : ToolFormBase, IToolFormAutoConfig { [RequiredService] private PCEngine PCE { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/PCE/PCETileViewer.cs b/src/BizHawk.Client.EmuHawk/tools/PCE/PCETileViewer.cs index 7b49bb4ebe..618bf598ab 100644 --- a/src/BizHawk.Client.EmuHawk/tools/PCE/PCETileViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/PCE/PCETileViewer.cs @@ -10,7 +10,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class PceTileViewer : Form, IToolFormAutoConfig + public partial class PceTileViewer : ToolFormBase, IToolFormAutoConfig { [RequiredService] public PCEngine Emu { get; private set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/SMS/VDPViewer.cs b/src/BizHawk.Client.EmuHawk/tools/SMS/VDPViewer.cs index b93d480a4e..a976718c92 100644 --- a/src/BizHawk.Client.EmuHawk/tools/SMS/VDPViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/SMS/VDPViewer.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk { - public partial class SmsVdpViewer : Form, IToolFormAutoConfig + public partial class SmsVdpViewer : ToolFormBase, IToolFormAutoConfig { [RequiredService] private SMS Sms { get; set; } diff --git a/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs b/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs index 9c6c44288c..778eec0422 100644 --- a/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs +++ b/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs @@ -36,7 +36,7 @@ using BizHawk.Common; namespace BizHawk.Client.EmuHawk { - public unsafe partial class SNESGraphicsDebugger : Form, IToolFormAutoConfig + public unsafe partial class SNESGraphicsDebugger : ToolFormBase, IToolFormAutoConfig { readonly List displayTypeItems = new List();