NESHawk - add IsFDS flag and use it in NesSchema instead of a check for BoardName == "FDS"

This commit is contained in:
adelikat 2016-12-13 15:24:53 -06:00
parent c6d8666f23
commit 8c57dd98f3
2 changed files with 8 additions and 2 deletions

View File

@ -16,9 +16,10 @@ namespace BizHawk.Client.EmuHawk
{
if (core is NES)
{
var ss = (core as NES).GetSyncSettings();
var nes = core as NES;
var ss = nes.GetSyncSettings();
var isFds = core.BoardName == "FDS";
var isFds = nes.IsFDS;
if (ss.Controls.Famicom)
{
yield return StandardController(1);

View File

@ -122,6 +122,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
get { return _isVS; }
}
public bool IsFDS
{
get { return Board is FDS; }
}
NESWatch GetWatch(NESWatch.EDomain domain, int address)
{
if (domain == NESWatch.EDomain.Sysbus)