ApiHawk - fix bug in GB/GBC detection

This commit is contained in:
adelikat 2019-11-15 17:30:57 -06:00
parent cf4dd6770c
commit 4d92a0a43d
1 changed files with 4 additions and 6 deletions

View File

@ -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
{