ApiHawk - fix bug in GB/GBC detection
This commit is contained in:
parent
cf4dd6770c
commit
4d92a0a43d
|
@ -759,13 +759,11 @@ namespace BizHawk.Client.ApiHawk
|
|||
}
|
||||
|
||||
case "GB":
|
||||
if (Global.Emulator is Gameboy)
|
||||
if (Global.Emulator is Gameboy gb)
|
||||
{
|
||||
return SystemInfo.GB;
|
||||
}
|
||||
else if (Global.Emulator is GBColors)
|
||||
{
|
||||
return SystemInfo.GBC;
|
||||
return gb.IsCGBMode()
|
||||
? SystemInfo.GBC
|
||||
: SystemInfo.GB;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue