IInputPollable - Make IsLagFrame settable

This commit is contained in:
scrimpeh 2016-01-26 11:34:42 +01:00
parent f145f3cc68
commit ef1bc65ce6
25 changed files with 25 additions and 19 deletions

View File

@ -11,7 +11,7 @@
/// If the current frame is a lag frame.
/// All cores should define it the same, a lag frame is a frame in which input was not polled.
/// </summary>
bool IsLagFrame { get; }
bool IsLagFrame { get; set; }
IInputCallbackSystem InputCallbacks { get; }
}

View File

@ -19,6 +19,7 @@ namespace BizHawk.Emulation.Cores.Calculators
public bool IsLagFrame
{
get { return _isLag; }
set { _isLag = value; }
}
}
}

View File

@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
public bool IsLagFrame
{
get { return _machine.Lagged; }
private set { _machine.Lagged = value; }
set { _machine.Lagged = value; }
}
public IInputCallbackSystem InputCallbacks { get; private set; }

View File

@ -7,6 +7,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
public bool IsLagFrame
{
get { return _islag; }
set { _islag = value; }
}
public int LagCount

View File

@ -13,6 +13,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
public bool IsLagFrame
{
get { return _islag; }
set { _islag = value; }
}
public IInputCallbackSystem InputCallbacks { get; private set; }

View File

@ -13,6 +13,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
public bool IsLagFrame
{
get { return _islag; }
set { _islag = value; }
}
public IInputCallbackSystem InputCallbacks { get; private set; }

View File

@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Cores.Atari.Lynx
{
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
// TODO
public IInputCallbackSystem InputCallbacks

View File

@ -14,6 +14,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
public bool IsLagFrame
{
get { return _isLag; }
set { _isLag = value; }
}
public IInputCallbackSystem InputCallbacks

View File

@ -371,7 +371,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
}
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
[FeatureNotImplemented]
public IInputCallbackSystem InputCallbacks

View File

@ -102,7 +102,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
public int Frame { get; private set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();

View File

@ -116,7 +116,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
public int Frame { get; private set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
private ITraceable Tracer { get; set; }

View File

@ -196,7 +196,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
public int Frame { get; set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
// all cycle counts are relative to a 2*1024*1024 mhz refclock

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
{
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public IInputCallbackSystem InputCallbacks
{

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
return !_inputProvider.LastFrameInputPolled;
}
internal set
set
{
if (_settings.UseMupenStyleLag)
{

View File

@ -13,6 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public bool IsLagFrame
{
get { return islag; }
set { islag = value; }
}
public IInputCallbackSystem InputCallbacks

View File

@ -6,7 +6,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
public partial class QuickNES : IInputPollable
{
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public IInputCallbackSystem InputCallbacks
{

View File

@ -740,7 +740,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
int timeFrameCounter;
public int Frame { get { return timeFrameCounter; } set { timeFrameCounter = value; } }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public string SystemId { get; private set; }
public string BoardName { get; private set; }

View File

@ -310,7 +310,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
bool isLag = false;
public int Frame { get { return frame; } set { frame = value; } }
public int LagCount { get { return lagCount; } set { lagCount = value; } }
public bool IsLagFrame { get { return isLag; } }
public bool IsLagFrame { get { return isLag; } set { isLag = value; } }
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
public IInputCallbackSystem InputCallbacks { get { return _inputCallbacks; } }

View File

@ -310,7 +310,7 @@ namespace BizHawk.Emulation.Cores.Sega.Genesis
public int Frame { get; set; }
public int LagCount { get { return _lagcount; } set { _lagcount = value; } }
public bool IsLagFrame { get { return islag; } }
public bool IsLagFrame { get { return islag; } set { islag = value; } }
public bool DeterministicEmulation { get { return true; } }
public string SystemId { get { return "GEN"; } }

View File

@ -78,7 +78,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
bool isLag = false;
public int Frame { get { return frame; } set { frame = value; } }
public int LagCount { get { return lagCount; } set { lagCount = value; } }
public bool IsLagFrame { get { return isLag; } }
public bool IsLagFrame { get { return isLag; } set { isLag = value; } }
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
public IInputCallbackSystem InputCallbacks { get { return _inputCallbacks; } }

View File

@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
{
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
// TODO: optimize managed to unmanaged using the ActiveChanged event
public IInputCallbackSystem InputCallbacks

View File

@ -475,7 +475,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
public int Frame { get; private set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public string SystemId { get { return "GEN"; } }
public bool DeterministicEmulation { get { return true; } }

View File

@ -769,7 +769,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
public int Frame { get; private set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public IInputCallbackSystem InputCallbacks
{

View File

@ -101,7 +101,7 @@ namespace BizHawk.Emulation.Cores.WonderSwan
public int Frame { get; private set; }
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public string SystemId { get { return "WSWAN"; } }
public bool DeterministicEmulation { get; private set; }

View File

@ -903,7 +903,7 @@ namespace BizHawk.Emulation.Cores
#region IInputPollable
public int LagCount { get; set; }
public bool IsLagFrame { get; private set; }
public bool IsLagFrame { get; set; }
public IInputCallbackSystem InputCallbacks
{
[FeatureNotImplemented]