From c4398e8ac31ae3d681d8ff9f5234770c35c3a0a9 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 23 Apr 2016 04:42:17 -0500 Subject: [PATCH] support CDL (for 0th system) in GB link --- .../BizHawk.Emulation.Cores.csproj | 3 +++ .../Gameboy/GambatteLink.ICodeDataLog.cs | 24 +++++++++++++++++++ .../Consoles/Nintendo/Gameboy/GambatteLink.cs | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.ICodeDataLog.cs diff --git a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj index ef47c6b15e..2fd13ce80d 100644 --- a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj +++ b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj @@ -437,6 +437,9 @@ Gambatte.cs + + GambatteLink.cs + GambatteLink.cs diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.ICodeDataLog.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.ICodeDataLog.cs new file mode 100644 index 0000000000..0348165c76 --- /dev/null +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.ICodeDataLog.cs @@ -0,0 +1,24 @@ +using System; +using System.IO; +using System.Collections.Generic; + +using BizHawk.Emulation.Common; + +namespace BizHawk.Emulation.Cores.Nintendo.Gameboy +{ + partial class GambatteLink + { + void ICodeDataLogger.SetCDL(CodeDataLog cdl) + { + ((ICodeDataLogger)L).SetCDL(cdl); + } + + void ICodeDataLogger.NewCDL(CodeDataLog cdl) + { + ((ICodeDataLogger)L).NewCDL(cdl); + } + + void ICodeDataLogger.DisassembleCDL(Stream s, CodeDataLog cdl) { ((ICodeDataLogger)L).DisassembleCDL(s, cdl); } + + } +} \ No newline at end of file diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs index 585b30176d..e4733ae3a6 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs @@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy )] [ServiceNotApplicable(typeof(IDriveLight))] public partial class GambatteLink : IEmulator, IVideoProvider, ISyncSoundProvider, IInputPollable, ISaveRam, IStatable, ILinkable, - IDebuggable, ISettable + IDebuggable, ISettable, ICodeDataLogger { public GambatteLink(CoreComm comm, GameInfo leftinfo, byte[] leftrom, GameInfo rightinfo, byte[] rightrom, object Settings, object SyncSettings, bool deterministic) {