System Info - Fix detection of GG and SG-1000

This commit is contained in:
adelikat 2014-05-31 23:17:39 +00:00
parent da1bc66c0e
commit 8231025b91
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Cores.Sega.MasterSystem;
using BizHawk.Emulation.DiscSystem;
namespace BizHawk.Client.Common
@ -105,9 +106,16 @@ namespace BizHawk.Client.Common
case "SG":
return SystemInfo.SG;
case "SMS":
if ((Global.Emulator as SMS).IsGameGear)
{
return SystemInfo.GG;
}
else if ((Global.Emulator as SMS).IsSG1000)
{
return SystemInfo.SG;
}
return SystemInfo.SMS;
case "GG":
return SystemInfo.GG;
case "PCECD":
return SystemInfo.PCECD;
case "PCE":

View File

@ -68,6 +68,8 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
public YM2413 YM2413;
public SoundMixer SoundMixer;
public bool IsGameGear = false;
public bool IsSG1000 = false;
public bool HasYM2413 = false;
int frame = 0;
@ -95,6 +97,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
CoreComm = comm;
IsGameGear = game.System == "GG";
IsSG1000 = game.System == "SG";
RomData = rom;
CoreComm.CpuTraceAvailable = true;