BizHawk/BizHawk.Emulation.Common/Base Implementations/TraceBuffer.cs

21 lines
451 B
C#

namespace BizHawk.Emulation.Common
{
/// <summary>
/// A generic implementation of ITraceable that can be used by any core
/// </summary>
/// <seealso cref="ITraceable" />
public class TraceBuffer : ITraceable
{
public string Header { get; set; } = "Instructions";
public ITraceSink Sink { private get; set; }
public bool Enabled => Sink != null;
public void Put(TraceInfo info)
{
Sink.Put(info);
}
}
}