25 lines
509 B
C#
25 lines
509 B
C#
//garbage
|
|
|
|
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 TraceBuffer()
|
|
{
|
|
Header = "Instructions";
|
|
}
|
|
|
|
public string Header { get; set; }
|
|
|
|
public ITraceSink Sink { get; set; }
|
|
|
|
public bool Enabled { get { return Sink != null; } }
|
|
|
|
public void Put(TraceInfo info) { Sink.Put(info); }
|
|
}
|
|
}
|