dual gameboy: hook up to front end cable connected status indicator

This commit is contained in:
goyuken 2014-08-23 01:30:22 +00:00
parent 25b512a9c7
commit c905b6fed2
1 changed files with 3 additions and 1 deletions

View File

@ -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;