IInputPollable - remove the set on LagCount as it is not needed
This commit is contained in:
parent
80957a1071
commit
5bcdfb5991
|
@ -5,7 +5,7 @@
|
|||
/// <summary>
|
||||
/// The lag count.
|
||||
/// </summary>
|
||||
int LagCount { get; set; }
|
||||
int LagCount { get; }
|
||||
|
||||
/// <summary>
|
||||
/// If the current frame is a lag frame.
|
||||
|
|
|
@ -11,7 +11,6 @@ namespace BizHawk.Emulation.Cores.Calculators
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagCount; }
|
||||
set { _lagCount = value; }
|
||||
}
|
||||
|
||||
public IInputCallbackSystem InputCallbacks { get; private set; }
|
||||
|
|
|
@ -4,12 +4,12 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
{
|
||||
public partial class AppleII : IInputPollable
|
||||
{
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
|
||||
public bool IsLagFrame
|
||||
{
|
||||
get { return _machine.Lagged; }
|
||||
set { _machine.Lagged = value; }
|
||||
private set { _machine.Lagged = value; }
|
||||
}
|
||||
|
||||
public IInputCallbackSystem InputCallbacks { [FeatureNotImplemented]get; private set; }
|
||||
|
|
|
@ -12,7 +12,6 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagcount; }
|
||||
set { _lagcount = value; }
|
||||
}
|
||||
|
||||
public IInputCallbackSystem InputCallbacks { get; private set; }
|
||||
|
|
|
@ -164,7 +164,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
_islag = !board.inputRead;
|
||||
|
||||
if (_islag)
|
||||
LagCount++;
|
||||
_lagcount++;
|
||||
_frame++;
|
||||
|
||||
//Console.WriteLine("CPUPC: " + C64Util.ToHex(board.cpu.PC, 4) + " 1541PC: " + C64Util.ToHex(disk.PC, 4));
|
||||
|
|
|
@ -386,7 +386,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
|
|||
{
|
||||
_tia.CompleteAudioFrame();
|
||||
if (_islag)
|
||||
LagCount++;
|
||||
_lagcount++;
|
||||
_tia.LineCount = 0;
|
||||
_frameStartPending = true;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagcount; }
|
||||
set { _lagcount = value; }
|
||||
}
|
||||
|
||||
public bool IsLagFrame
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagcount; }
|
||||
set { _lagcount = value; }
|
||||
}
|
||||
|
||||
public bool IsLagFrame
|
||||
|
|
|
@ -105,7 +105,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
|
|||
|
||||
if (_islag)
|
||||
{
|
||||
LagCount++;
|
||||
_lagcount++;
|
||||
}
|
||||
|
||||
avProvider.FillFrameBuffer();
|
||||
|
|
|
@ -6,17 +6,17 @@ using BizHawk.Emulation.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Atari.Lynx
|
||||
{
|
||||
public partial class Lynx : IInputPollable
|
||||
{
|
||||
public int LagCount { get; set; }
|
||||
public partial class Lynx : IInputPollable
|
||||
{
|
||||
public int LagCount { get; private set; }
|
||||
|
||||
public bool IsLagFrame { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
// TODO
|
||||
public IInputCallbackSystem InputCallbacks
|
||||
{
|
||||
[FeatureNotImplemented]
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
}
|
||||
// TODO
|
||||
public IInputCallbackSystem InputCallbacks
|
||||
{
|
||||
[FeatureNotImplemented]
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagCount; }
|
||||
set { _lagCount = value; }
|
||||
}
|
||||
|
||||
public bool IsLagFrame
|
||||
|
|
|
@ -78,7 +78,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
|
||||
if (_isLag)
|
||||
{
|
||||
LagCount++;
|
||||
_lagCount++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -315,8 +315,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagCount; }
|
||||
set { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
private int _lagCount;
|
||||
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
|
|
@ -101,7 +101,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
}
|
||||
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
}
|
||||
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
private ITraceable Tracer { get; set; }
|
||||
|
|
|
@ -192,7 +192,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
internal IntPtr GambatteState = IntPtr.Zero;
|
||||
|
||||
public int Frame { get; set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
// all cycle counts are relative to a 2*1024*1024 mhz refclock
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
|
|||
public partial class N64 : IInputPollable
|
||||
{
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
|
||||
public bool IsLagFrame
|
||||
{
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
public int LagCount
|
||||
{
|
||||
get { return _lagcount; }
|
||||
set { _lagcount = value; }
|
||||
}
|
||||
|
||||
public bool IsLagFrame
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
|
|||
{
|
||||
public partial class QuickNES : IInputPollable
|
||||
{
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
public IInputCallbackSystem InputCallbacks
|
||||
|
|
|
@ -713,7 +713,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
|
|||
|
||||
int timeFrameCounter;
|
||||
public int Frame { get { return timeFrameCounter; } set { timeFrameCounter = value; } }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
public string SystemId { get; private set; }
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
|||
bool lagged = true;
|
||||
bool isLag = false;
|
||||
public int Frame { get { return frame; } set { frame = value; } }
|
||||
public int LagCount { get { return lagCount; } set { lagCount = value; } }
|
||||
public int LagCount { get { return lagCount; } }
|
||||
public bool IsLagFrame { get { return isLag; } }
|
||||
|
||||
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
|
||||
|
|
|
@ -309,7 +309,7 @@ namespace BizHawk.Emulation.Cores.Sega.Genesis
|
|||
public void EndAsyncSound() { }
|
||||
|
||||
public int Frame { get; set; }
|
||||
public int LagCount { get { return _lagcount; } set { _lagcount = value; } }
|
||||
public int LagCount { get { return _lagcount; } }
|
||||
public bool IsLagFrame { get { return islag; } }
|
||||
public bool DeterministicEmulation { get { return true; } }
|
||||
public string SystemId { get { return "GEN"; } }
|
||||
|
|
|
@ -77,7 +77,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
|||
bool lagged = true;
|
||||
bool isLag = false;
|
||||
public int Frame { get { return frame; } set { frame = value; } }
|
||||
public int LagCount { get { return lagCount; } set { lagCount = value; } }
|
||||
public int LagCount { get { return lagCount; } }
|
||||
public bool IsLagFrame { get { return isLag; } }
|
||||
|
||||
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
|
|||
{
|
||||
public partial class Yabause : IInputPollable
|
||||
{
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
|
|
|
@ -430,7 +430,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
}
|
||||
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
public string SystemId { get { return "GEN"; } }
|
||||
|
|
|
@ -659,7 +659,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public IController Controller { get; set; }
|
||||
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
[FeatureNotImplemented]
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace BizHawk.Emulation.Cores.WonderSwan
|
|||
IntPtr Core;
|
||||
|
||||
public int Frame { get; private set; }
|
||||
public int LagCount { get; set; }
|
||||
public int LagCount { get; private set; }
|
||||
public bool IsLagFrame { get; private set; }
|
||||
|
||||
public string SystemId { get { return "WSWAN"; } }
|
||||
|
|
Loading…
Reference in New Issue