Atari7800Hawk - implement IBoardInfo

This commit is contained in:
adelikat 2017-08-04 18:58:53 -05:00
parent cd5f6e66e1
commit 10b8ca80b9
1 changed files with 4 additions and 2 deletions

View File

@ -13,8 +13,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
isPorted: false,
isReleased: true)]
[ServiceNotApplicable(typeof(ISettable<,>), typeof(IDriveLight))]
public partial class A7800Hawk : IEmulator, ISaveRam, IDebuggable, IStatable, IInputPollable, IRegionable,
ISettable<A7800Hawk.A7800Settings, A7800Hawk.A7800SyncSettings>
public partial class A7800Hawk : IEmulator, ISaveRam, IDebuggable, IStatable, IInputPollable,
IRegionable, IBoardInfo, ISettable<A7800Hawk.A7800Settings, A7800Hawk.A7800SyncSettings>
{
// this register selects between 2600 and 7800 mode in the A7800
// however, we already have a 2600 emulator so this core will only be loading A7800 games
@ -235,6 +235,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
HardReset();
}
public string BoardName => mapper.GetType().Name.Replace("Mapper", "");
public DisplayType Region => _isPAL ? DisplayType.PAL : DisplayType.NTSC;
private readonly A7800HawkControllerDeck _controllerDeck;