GGHawkLink: tracelogger

This commit is contained in:
alyosha-tas 2019-02-09 15:19:18 -06:00
parent 5665617d9b
commit ea92bdcc66
11 changed files with 12 additions and 21 deletions

View File

@ -4,7 +4,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : ICodeDataLogger
public partial class SMS : ICodeDataLogger
{
public void SetCDL(ICodeDataLog cdl)
{

View File

@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : IDebuggable
public partial class SMS : IDebuggable
{
public IDictionary<string, RegisterValue> GetCpuFlagsAndRegisters()
{

View File

@ -2,7 +2,7 @@
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : IEmulator
public partial class SMS : IEmulator
{
public IEmulatorServiceProvider ServiceProvider { get; }
@ -97,15 +97,6 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
_frame++;
PSG.BeginFrame(Cpu.TotalExecutedCycles);
if (Tracer.Enabled)
{
Cpu.TraceCallback = s => Tracer.Put(s);
}
else
{
Cpu.TraceCallback = null;
}
if (!IsGameGear && IsGameGear_C)
{
Cpu.NonMaskableInterrupt = start_pressed;

View File

@ -2,7 +2,7 @@
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : IInputPollable
public partial class SMS : IInputPollable
{
public int LagCount
{

View File

@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS
public partial class SMS
{
private MemoryDomainList MemoryDomains;
private readonly Dictionary<string, MemoryDomainByteArray> _byteArrayDomains = new Dictionary<string, MemoryDomainByteArray>();

View File

@ -4,7 +4,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : ISaveRam
public partial class SMS : ISaveRam
{
public byte[] CloneSaveRam()
{

View File

@ -2,7 +2,7 @@
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>
public partial class SMS : ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>
{
public SMSSettings GetSettings()
{

View File

@ -3,7 +3,7 @@
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
// Sound refactor TODO: Implement ISoundProvider without the need for FakeSyncSound
public sealed partial class SMS
public partial class SMS
{
private FakeSyncSound _fakeSyncSound;
private IAsyncSoundProvider ActiveSoundProvider;

View File

@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
{
public sealed partial class SMS : IStatable
public partial class SMS : IStatable
{
public bool BinarySaveStatesPreferred
{

View File

@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
isPorted: false,
isReleased: true)]
[ServiceNotApplicable(typeof(IDriveLight))]
public sealed partial class SMS : IEmulator, ISaveRam, IStatable, IInputPollable, IRegionable,
public partial class SMS : IEmulator, ISaveRam, IStatable, IInputPollable, IRegionable,
IDebuggable, ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>, ICodeDataLogger
{
[CoreConstructor("SMS", "SG", "GG")]
@ -262,7 +262,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
public DisplayType Region { get; set; }
private ITraceable Tracer { get; set; }
private readonly ITraceable Tracer;
string DetermineRegion(string gameRegion)
{

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
public enum VdpMode { SMS, GameGear }
// Emulates the Texas Instruments TMS9918 VDP.
public sealed partial class VDP : IVideoProvider
public partial class VDP : IVideoProvider
{
// VDP State
public byte[] VRAM = new byte[0x4000]; //16kb video RAM