BizHawk/BizHawk.Emulation.Cores/Consoles/Atari/2600/Atari2600.IEmulator.cs

49 lines
989 B
C#
Raw Normal View History

using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
public partial class Atari2600 : IEmulator
{
public IEmulatorServiceProvider ServiceProvider { get; }
public ControllerDefinition ControllerDefinition => _controllerDeck.Definition;
public void FrameAdvance(IController controller, bool render, bool rendersound)
{
_controller = controller;
StartFrameCond();
while (_tia.LineCount < _tia.NominalNumScanlines)
{
Cycle();
}
if (rendersound == false)
{
2017-05-05 18:49:36 +00:00
_tia.AudioClocks = 0; // we need this here since the async sound provider won't check in this case
}
FinishFrameCond();
}
public int Frame => _frame;
public string SystemId => "A26";
public bool DeterministicEmulation => true;
public CoreComm CoreComm { get; }
public void ResetCounters()
{
_frame = 0;
_lagcount = 0;
_islag = false;
}
public void Dispose()
{
}
}
}