2008-09-18 03:15:49 +00:00
|
|
|
#ifndef __TRACE_DEFS_H__
|
|
|
|
#define __TRACE_DEFS_H__
|
|
|
|
|
|
|
|
enum TraceType
|
|
|
|
{
|
|
|
|
TraceNone = 0x00000000,
|
|
|
|
TraceError = 0x00000001,
|
|
|
|
TraceSettings = 0x00000002,
|
|
|
|
TraceGfxPlugin = 0x00000004,
|
|
|
|
TraceDebug = 0x00000010,
|
|
|
|
TraceRecompiler = 0x00000020,
|
|
|
|
TraceRSP = 0x00000040,
|
|
|
|
TraceTLB = 0x00000080,
|
2008-11-17 10:02:22 +00:00
|
|
|
TraceValidate = 0x00000100,
|
2011-01-04 09:10:28 +00:00
|
|
|
TraceAudio = 0x00000200,
|
2008-09-18 03:15:49 +00:00
|
|
|
TraceNoHeader = 0x80000000,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TraceLevel
|
|
|
|
{
|
|
|
|
//Handle Existing Code
|
|
|
|
TrLvError = TraceError,
|
|
|
|
TrLv1 = TraceSettings | TrLvError,
|
|
|
|
TrLv2 = TrLv1 | TraceDebug,
|
|
|
|
TrlvGfxPlugin = TraceGfxPlugin,
|
|
|
|
TrLvAll = ~TraceNoHeader,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void WriteTrace ( TraceType Type, LPCTSTR Message );
|
|
|
|
void WriteTraceF ( TraceType Type, LPCTSTR strFormat, ... );
|
|
|
|
void CloseTrace ( void ); //Free's all memory associated with trace
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __TRACE_DEFS_H__
|