2016-12-14 15:11:07 +00:00
|
|
|
|
//garbage
|
2016-08-13 20:31:04 +00:00
|
|
|
|
|
2014-12-05 00:17:34 +00:00
|
|
|
|
namespace BizHawk.Emulation.Common
|
|
|
|
|
{
|
2016-12-14 15:11:07 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A generic implementation of ITraceable that can be used by any core
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <seealso cref="ITraceable" />
|
2014-12-23 01:58:12 +00:00
|
|
|
|
public class TraceBuffer : ITraceable
|
2014-12-05 00:17:34 +00:00
|
|
|
|
{
|
|
|
|
|
public TraceBuffer()
|
|
|
|
|
{
|
|
|
|
|
Header = "Instructions";
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-13 20:31:04 +00:00
|
|
|
|
public string Header { get; set; }
|
2014-12-05 00:17:34 +00:00
|
|
|
|
|
2016-08-13 20:31:04 +00:00
|
|
|
|
public ITraceSink Sink { get; set; }
|
2014-12-05 00:17:34 +00:00
|
|
|
|
|
2016-08-13 20:31:04 +00:00
|
|
|
|
public bool Enabled { get { return Sink != null; } }
|
2014-12-05 00:17:34 +00:00
|
|
|
|
|
2016-08-13 20:31:04 +00:00
|
|
|
|
public void Put(TraceInfo info) { Sink.Put(info); }
|
2014-12-05 00:17:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|