2017-05-05 16:56:28 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Atari.Atari2600
|
|
|
|
|
{
|
|
|
|
|
public partial class Atari2600 : IEmulator
|
|
|
|
|
{
|
|
|
|
|
public IEmulatorServiceProvider ServiceProvider { get; }
|
|
|
|
|
|
2017-06-27 20:14:41 +00:00
|
|
|
|
public ControllerDefinition ControllerDefinition => _controllerDeck.Definition;
|
2017-05-05 16:56:28 +00:00
|
|
|
|
|
|
|
|
|
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
|
2017-05-05 16:56:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|