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

21 lines
451 B
C#
Raw Normal View History

2017-04-26 13:44:52 +00:00
namespace BizHawk.Emulation.Common
2014-12-05 00:17:34 +00:00
{
/// <summary>
/// A generic implementation of ITraceable that can be used by any core
/// </summary>
/// <seealso cref="ITraceable" />
public class TraceBuffer : ITraceable
2014-12-05 00:17:34 +00:00
{
public string Header { get; set; } = "Instructions";
2014-12-05 00:17:34 +00:00
public ITraceSink Sink { private get; set; }
2014-12-05 00:17:34 +00:00
public bool Enabled => Sink != null;
2014-12-05 00:17:34 +00:00
public void Put(TraceInfo info)
{
Sink.Put(info);
}
2014-12-05 00:17:34 +00:00
}
}