IInputPollable - Make IsLagFrame settable
This commit is contained in:
parent
f145f3cc68
commit
ef1bc65ce6
|
@ -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; }
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace BizHawk.Emulation.Cores.Calculators
|
|||
public bool IsLagFrame
|
||||
{
|
||||
get { return _isLag; }
|
||||
set { _isLag = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -7,6 +7,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
public bool IsLagFrame
|
||||
{
|
||||
get { return _islag; }
|
||||
set { _islag = value; }
|
||||
}
|
||||
|
||||
public int LagCount
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
public bool IsLagFrame
|
||||
{
|
||||
get { return _isLag; }
|
||||
set { _isLag = value; }
|
||||
}
|
||||
|
||||
public IInputCallbackSystem InputCallbacks
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
|
|||
return !_inputProvider.LastFrameInputPolled;
|
||||
}
|
||||
|
||||
internal set
|
||||
set
|
||||
{
|
||||
if (_settings.UseMupenStyleLag)
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
public bool IsLagFrame
|
||||
{
|
||||
get { return islag; }
|
||||
set { islag = value; }
|
||||
}
|
||||
|
||||
public IInputCallbackSystem InputCallbacks
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; } }
|
||||
|
|
|
@ -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"; } }
|
||||
|
||||
|
|
|
@ -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; } }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; } }
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue