From c905b6fed2c708e02b6c846b5c8e538dc24e935c Mon Sep 17 00:00:00 2001 From: goyuken Date: Sat, 23 Aug 2014 01:30:22 +0000 Subject: [PATCH] dual gameboy: hook up to front end cable connected status indicator --- .../Consoles/Nintendo/Gameboy/GambatteLink.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs index 274302ad49..627dbb526c 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs @@ -40,7 +40,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy { return right ? R.IsCGBMode() : L.IsCGBMode(); } - public bool LinkCableConnected { get { return cableconnected; } } public GambatteLink(CoreComm comm, GameInfo leftinfo, byte[] leftrom, GameInfo rightinfo, byte[] rightrom, object Settings, object SyncSettings, bool deterministic) { @@ -65,6 +64,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy comm.CpuTraceAvailable = false; // TODO comm.NominalWidth = L.CoreComm.NominalWidth + R.CoreComm.NominalWidth; comm.NominalHeight = L.CoreComm.NominalHeight; + comm.UsesLinkCable = true; + comm.LinkConnected = true; Frame = 0; LagCount = 0; @@ -121,6 +122,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy { cableconnected ^= true; Console.WriteLine("Cable connect status to {0}", cableconnected); + CoreComm.LinkConnected = cableconnected; } cablediscosignal = cablediscosignal_new;