From e214706e4cb5d0298c1ff8a7dd5845d3524c7643 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 14 Dec 2014 01:34:58 +0000 Subject: [PATCH] remove now unnecessary type checking before autoloading tools --- BizHawk.Client.EmuHawk/MainForm.cs | 32 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index ee0c5c4869..b9bc6071c5 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -352,9 +352,7 @@ namespace BizHawk.Client.EmuHawk LoadQuickSave("QuickSave" + Global.Config.SaveSlot); } - //can't do this unless we are autoloading a rom too... - if (Global.Config.RecentWatches.AutoLoad - && Global.Emulator.HasMemoryDomains()) + if (Global.Config.RecentWatches.AutoLoad) { GlobalWin.Tools.LoadRamWatch(!Global.Config.DisplayRamWatch); } @@ -374,32 +372,32 @@ namespace BizHawk.Client.EmuHawk GlobalWin.Tools.Load(); } - if (Global.Config.AutoLoadNESPPU && Global.Emulator is NES) + if (Global.Config.AutoLoadNESPPU) { GlobalWin.Tools.Load(); } - if (Global.Config.AutoLoadNESNameTable && Global.Emulator is NES) + if (Global.Config.AutoLoadNESNameTable) { GlobalWin.Tools.Load(); } - if (Global.Config.AutoLoadNESDebugger && Global.Emulator is NES) + if (Global.Config.AutoLoadNESDebugger) { GlobalWin.Tools.Load(); } - if (Global.Config.NESGGAutoload && Global.Emulator.SystemId == "NES") + if (Global.Config.NESGGAutoload) { GlobalWin.Tools.LoadGameGenieEc(); } - if (Global.Config.AutoLoadGBGPUView && Global.Emulator is Gameboy) + if (Global.Config.AutoLoadGBGPUView) { GlobalWin.Tools.Load(); } - if (Global.Config.AutoloadTAStudio && !Global.Game.IsNullInstance) + if (Global.Config.AutoloadTAStudio) { GlobalWin.Tools.Load(); } @@ -414,37 +412,37 @@ namespace BizHawk.Client.EmuHawk OpenLuaConsole(); } - if (Global.Config.SmsVdpAutoLoad && Global.Emulator is SMS) + if (Global.Config.SmsVdpAutoLoad) { GlobalWin.Tools.Load(); } - if (Global.Config.PCEBGViewerAutoload && Global.Emulator is PCEngine) + if (Global.Config.PCEBGViewerAutoload) { GlobalWin.Tools.Load(); } - if (Global.Config.PceVdpAutoLoad && Global.Emulator is PCEngine) + if (Global.Config.PceVdpAutoLoad) { GlobalWin.Tools.Load(); } - if (Global.Config.RecentPceCdlFiles.AutoLoad && Global.Emulator is PCEngine) + if (Global.Config.RecentPceCdlFiles.AutoLoad) { GlobalWin.Tools.Load(); } - if (Global.Config.PceSoundDebuggerAutoload && Global.Emulator is PCEngine) + if (Global.Config.PceSoundDebuggerAutoload) { GlobalWin.Tools.Load(); } - if (Global.Config.GenVdpAutoLoad && Global.Emulator is GPGX) + if (Global.Config.GenVdpAutoLoad) { GlobalWin.Tools.Load(); } - if (Global.Config.AutoLoadSNESGraphicsDebugger && Global.Emulator is LibsnesCore) + if (Global.Config.AutoLoadSNESGraphicsDebugger) { GlobalWin.Tools.Load(); } @@ -454,7 +452,7 @@ namespace BizHawk.Client.EmuHawk GlobalWin.Tools.LoadTraceLogger(); } - if (Global.Config.GenericDebuggerAutoload && Global.Emulator.CanDebug()) + if (Global.Config.GenericDebuggerAutoload) { GlobalWin.Tools.Load(); }