IInputPollable - remove the set on LagCount as it is not needed

This commit is contained in:
adelikat 2015-06-11 01:23:14 +00:00
parent 80957a1071
commit 5bcdfb5991
27 changed files with 32 additions and 38 deletions

View File

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

View File

@ -11,7 +11,6 @@ namespace BizHawk.Emulation.Cores.Calculators
public int LagCount
{
get { return _lagCount; }
set { _lagCount = value; }
}
public IInputCallbackSystem InputCallbacks { get; private set; }

View File

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

View File

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

View File

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

View File

@ -386,7 +386,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
_tia.CompleteAudioFrame();
if (_islag)
LagCount++;
_lagcount++;
_tia.LineCount = 0;
_frameStartPending = true;
}

View File

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

View File

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

View File

@ -105,7 +105,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
if (_islag)
{
LagCount++;
_lagcount++;
}
avProvider.FillFrameBuffer();

View File

@ -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(); }
}
}
}

View File

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

View File

@ -78,7 +78,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
if (_isLag)
{
LagCount++;
_lagCount++;
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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