fix a few potential NRE's in Global.cs

This commit is contained in:
adelikat 2019-12-20 10:24:54 -06:00
parent 24ed667c13
commit f934b059c8
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ namespace BizHawk.Client.Common
/// </summary>
public static int SoundMaxBufferDeficitMs;
// the movie will be spliced inbetween these if it is present
// the movie will be spliced in between these if it is present
public static readonly CopyControllerAdapter MovieInputSourceAdapter = new CopyControllerAdapter();
public static readonly CopyControllerAdapter MovieOutputHardpoint = new CopyControllerAdapter();
public static readonly MultitrackRewiringControllerAdapter MultitrackRewiringAdapter = new MultitrackRewiringControllerAdapter();
@ -86,12 +86,12 @@ namespace BizHawk.Client.Common
case "SG":
return SystemInfo.SG;
case "SMS":
if ((Emulator as SMS).IsGameGear)
if (Emulator is SMS gg && gg.IsGameGear)
{
return SystemInfo.GG;
}
if ((Emulator as SMS).IsSG1000)
if (Emulator is SMS sg && sg.IsSG1000)
{
return SystemInfo.SG;
}