2015-10-25 11:10:54 +00:00
|
|
|
#pragma once
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
enum TraceType
|
|
|
|
{
|
2015-10-25 11:10:54 +00:00
|
|
|
TraceNone = 0x00000000,
|
|
|
|
TraceError = 0x00000001,
|
|
|
|
TraceSettings = 0x00000002,
|
|
|
|
TraceGfxPlugin = 0x00000004,
|
|
|
|
TraceDebug = 0x00000010,
|
|
|
|
TraceRecompiler = 0x00000020,
|
|
|
|
TraceRSP = 0x00000040,
|
|
|
|
TraceTLB = 0x00000080,
|
|
|
|
TraceValidate = 0x00000100,
|
|
|
|
TraceAudio = 0x00000200,
|
|
|
|
TraceProtectedMem = 0x00000400,
|
|
|
|
TraceNoHeader = 0x80000000,
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum TraceLevel
|
|
|
|
{
|
2015-10-25 11:10:54 +00:00
|
|
|
//Handle Existing Code
|
|
|
|
TrLvError = TraceError,
|
|
|
|
TrLv1 = TraceSettings | TrLvError,
|
|
|
|
TrLv2 = TrLv1 | TraceDebug,
|
|
|
|
TrlvGfxPlugin = TraceGfxPlugin,
|
|
|
|
TrLvAll = ~TraceNoHeader,
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|
|
|
|
|
2015-10-25 11:10:54 +00:00
|
|
|
void WriteTrace ( TraceType Type, const char * Message );
|
|
|
|
void WriteTraceF ( TraceType Type, const char * strFormat, ... );
|
2008-09-18 03:15:49 +00:00
|
|
|
void CloseTrace ( void ); //Free's all memory associated with trace
|