From 81bdacea649348401972d509e2cb794d4ed552ca Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 11 Apr 2020 09:21:35 -0500 Subject: [PATCH] O2 - implement IBoardInfo --- BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.cs b/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.cs index 984900582f..8e30280391 100644 --- a/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.cs +++ b/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.cs @@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk isPorted: false, isReleased: false)] [ServiceNotApplicable(new[] { typeof(IDriveLight) })] - public partial class O2Hawk : IEmulator, ISaveRam, IDebuggable, IInputPollable, IRegionable, ISettable + public partial class O2Hawk : IEmulator, ISaveRam, IDebuggable, IInputPollable, IRegionable, ISettable, IBoardInfo { // memory domains public byte[] RAM = new byte[0x80]; @@ -141,6 +141,8 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk cpu.Reset(); } + public string BoardName => mapper.GetType().Name; + private void ExecFetch(ushort addr) { uint flags = (uint)MemoryCallbackFlags.AccessRead;