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

25 lines
509 B
C#
Raw Normal View History

//garbage
2014-12-05 00:17:34 +00:00
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
2014-12-05 00:17:34 +00:00
{
public TraceBuffer()
{
Header = "Instructions";
}
public string Header { get; set; }
2014-12-05 00:17:34 +00:00
public ITraceSink Sink { get; set; }
2014-12-05 00:17:34 +00:00
public bool Enabled { get { return 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
}
}