dual gameboy: on_snoop support. you get a callback per sub-core, as would be expected.
This commit is contained in:
parent
7da2ede59d
commit
05a525d2c4
|
@ -50,6 +50,9 @@ namespace BizHawk.Emulation.Consoles.GB
|
||||||
blip_right.SetRates(2097152 * 2, 44100);
|
blip_right.SetRates(2097152 * 2, 44100);
|
||||||
|
|
||||||
SetMemoryDomains();
|
SetMemoryDomains();
|
||||||
|
|
||||||
|
L.CoreComm.InputCallback = CallbackLinker;
|
||||||
|
R.CoreComm.InputCallback = CallbackLinker;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IVideoProvider VideoProvider { get { return this; } }
|
public IVideoProvider VideoProvider { get { return this; } }
|
||||||
|
@ -71,6 +74,15 @@ namespace BizHawk.Emulation.Consoles.GB
|
||||||
public ControllerDefinition ControllerDefinition { get { return DualGbController; } }
|
public ControllerDefinition ControllerDefinition { get { return DualGbController; } }
|
||||||
public IController Controller { get; set; }
|
public IController Controller { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// each sub-core calls this
|
||||||
|
/// </summary>
|
||||||
|
void CallbackLinker()
|
||||||
|
{
|
||||||
|
if (CoreComm.InputCallback != null)
|
||||||
|
CoreComm.InputCallback();
|
||||||
|
}
|
||||||
|
|
||||||
public void FrameAdvance(bool render, bool rendersound = true)
|
public void FrameAdvance(bool render, bool rendersound = true)
|
||||||
{
|
{
|
||||||
LCont.Clear();
|
LCont.Clear();
|
||||||
|
|
Loading…
Reference in New Issue