Intellivision - implement the BoardName property

This commit is contained in:
adelikat 2017-04-23 12:47:26 -05:00
parent 71f33e53f5
commit 4260ad528b
4 changed files with 8 additions and 3 deletions

View File

@ -16,6 +16,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
// we will pick the mapper from the game DB and default to 0 // we will pick the mapper from the game DB and default to 0
private int mapper = 0; private int mapper = 0;
public string BoardName => $"Mapper {mapper}";
public void SyncState(Serializer ser) public void SyncState(Serializer ser)
{ {
ser.BeginSection("Cart"); ser.BeginSection("Cart");

View File

@ -9,5 +9,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
bool WriteCart(ushort addr, ushort value, bool poke); bool WriteCart(ushort addr, ushort value, bool poke);
void SyncState(Serializer ser); void SyncState(Serializer ser);
string BoardName { get; }
} }
} }

View File

@ -5,6 +5,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
{ {
public sealed class Intellicart : ICart public sealed class Intellicart : ICart
{ {
public string BoardName => $"Intellicart";
public void SyncState(Serializer ser) public void SyncState(Serializer ser)
{ {
ser.BeginSection("Cart"); ser.BeginSection("Cart");

View File

@ -125,8 +125,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
public bool DeterministicEmulation => true; public bool DeterministicEmulation => true;
[FeatureNotImplemented] public string BoardName => _cart.BoardName;
public string BoardName => null;
public void ResetCounters() public void ResetCounters()
{ {