diff --git a/BizHawk.Client.Common/Global.cs b/BizHawk.Client.Common/Global.cs index aaa2849701..95db79c7e8 100644 --- a/BizHawk.Client.Common/Global.cs +++ b/BizHawk.Client.Common/Global.cs @@ -154,15 +154,15 @@ namespace BizHawk.Client.Common case "NGP": return SystemInfo.NeoGeoPocket; case "ZXSpectrum": - return SystemInfo.ZXSpectrum; + return SystemInfo.ZxSpectrum; case "AmstradCPC": - return SystemInfo.AmstradCPC; + return SystemInfo.AmstradCpc; case "ChannelF": return SystemInfo.ChannelF; case "O2": return SystemInfo.O2; case "MAME": - return SystemInfo.MAME; + return SystemInfo.Mame; } } } diff --git a/BizHawk.Client.Common/SystemInfo.cs b/BizHawk.Client.Common/SystemInfo.cs index d41436c514..49763fe101 100644 --- a/BizHawk.Client.Common/SystemInfo.cs +++ b/BizHawk.Client.Common/SystemInfo.cs @@ -14,7 +14,7 @@ namespace BizHawk.Client.Common private const JoypadButton UpDownLeftRight = JoypadButton.Up | JoypadButton.Down | JoypadButton.Left | JoypadButton.Right; private const JoypadButton StandardButtons = JoypadButton.A | JoypadButton.B | JoypadButton.Start | JoypadButton.Select | UpDownLeftRight; - private static readonly List _allSystemInfos = new List(); + private static readonly List AllSystemInfos = new List(); #endregion @@ -34,7 +34,7 @@ namespace BizHawk.Client.Common MaxControllers = maxControllers; AvailableButtons = availableButtons; - _allSystemInfos.Add(this); + AllSystemInfos.Add(this); } #endregion @@ -184,7 +184,7 @@ namespace BizHawk.Client.Common public static SystemInfo TI83 { get; } = new SystemInfo("TI - 83", CoreSystem.TI83, 1); /// - /// Gets the instance for Wonderswan + /// Gets the instance for WonderSwan /// public static SystemInfo WonderSwan { get; } = new SystemInfo("WonderSwan", CoreSystem.WonderSwan, 1); @@ -196,7 +196,7 @@ namespace BizHawk.Client.Common /// /// Gets the instance for Vectrex /// - public static SystemInfo Vectrex { get; } = new SystemInfo("Vextrex", CoreSystem.Vectrex, 2); + public static SystemInfo Vectrex { get; } = new SystemInfo("Vectrex", CoreSystem.Vectrex, 2); /// /// Gets the instance for TI-83 @@ -206,12 +206,12 @@ namespace BizHawk.Client.Common /// /// Gets the instance for ZXSpectrum /// - public static SystemInfo ZXSpectrum { get; } = new SystemInfo("ZX Spectrum", CoreSystem.ZXSpectrum, 2); + public static SystemInfo ZxSpectrum { get; } = new SystemInfo("ZX Spectrum", CoreSystem.ZXSpectrum, 2); /// /// Gets the instance for AmstradCPC /// - public static SystemInfo AmstradCPC { get; } = new SystemInfo("Amstrad CPC", CoreSystem.AmstradCPC, 2); + public static SystemInfo AmstradCpc { get; } = new SystemInfo("Amstrad CPC", CoreSystem.AmstradCPC, 2); /// /// Gets the instance for GGL @@ -231,7 +231,7 @@ namespace BizHawk.Client.Common /// /// Gets the instance for MAME /// - public static SystemInfo MAME { get; } = new SystemInfo("MAME", CoreSystem.MAME, 4); + public static SystemInfo Mame { get; } = new SystemInfo("MAME", CoreSystem.MAME, 4); #endregion Get SystemInfo @@ -242,7 +242,7 @@ namespace BizHawk.Client.Common /// public static SystemInfo FindByCoreSystem(CoreSystem system) { - return _allSystemInfos.Find(s => s.System == system); + return AllSystemInfos.Find(s => s.System == system); } /// @@ -252,16 +252,16 @@ namespace BizHawk.Client.Common /// True if object is equal to this instance; otherwise, false public override bool Equals(object obj) { - if (obj is SystemInfo) + if (obj is SystemInfo info) { - return this == (SystemInfo)obj; + return this == info; } return base.Equals(obj); } /// - /// Gets the haschode for current instance + /// Gets the hashcode for current instance /// /// This instance hashcode public override int GetHashCode()