Send traces to the crash handler.
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
#include "crash.h"
|
||||||
|
|
||||||
#include "dxerr8.h"
|
#include "dxerr8.h"
|
||||||
#pragma comment(lib, "DxErr8.lib")
|
#pragma comment(lib, "DxErr8.lib")
|
||||||
@@ -72,6 +73,7 @@ void RageLog::Trace( const char *fmt, ...)
|
|||||||
|
|
||||||
fprintf( m_fileLog, "%s\n", sBuff );
|
fprintf( m_fileLog, "%s\n", sBuff );
|
||||||
printf( "%s\n", sBuff );
|
printf( "%s\n", sBuff );
|
||||||
|
CrashLog(sBuff);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
this->Flush(); // implicit flush
|
this->Flush(); // implicit flush
|
||||||
|
|||||||
Reference in New Issue
Block a user