Null Emulator - rip out now uneeded stubs, increment frame counter during FrameAdvance (might as well, since it has a notion of advancing a frame)

This commit is contained in:
adelikat 2014-11-30 20:01:36 +00:00
parent 71c92cb87e
commit 5ce1d02df7
1 changed files with 3 additions and 9 deletions

View File

@ -58,6 +58,8 @@ namespace BizHawk.Emulation.Common
else
for (int i = 0; i < 256 * 192; i++)
frameBuffer[i] = Colors.Luminosity((byte) rand.Next());
Frame++;
}
public ControllerDefinition ControllerDefinition { get { return NullController; } }
public IController Controller { get; set; }
@ -66,16 +68,8 @@ namespace BizHawk.Emulation.Common
public int LagCount { get { return 0; } set { return; } }
public bool IsLagFrame { get { return false; } }
public byte[] CloneSaveRam() { return null; }
public void StoreSaveRam(byte[] data) { }
public bool DeterministicEmulation { get { return true; } }
public bool SaveRamModified { get; set; }
public void SaveStateText(TextWriter writer) { }
public void LoadStateText(TextReader reader) { }
public void SaveStateBinary(BinaryWriter writer) { }
public void LoadStateBinary(BinaryReader reader) { }
public byte[] SaveStateBinary() { return new byte[1]; }
public bool BinarySaveStatesPreferred { get { return false; } }
public int[] GetVideoBuffer() { return frameBuffer; }
public int VirtualWidth { get { return 256; } }
public int VirtualHeight { get { return 192; } }