Copy code from RageThreads.cpp.

This commit is contained in:
Steve Checkoway
2006-03-18 09:22:56 +00:00
parent cd45684d48
commit 1b0c19d442
+5
View File
@@ -378,6 +378,11 @@ void RageLog::UnmapLog(const RString &key)
void ShowWarning( const char *file, int line, const char *message )
{
/* Ignore everything up to and including the first "src/". */
const char *temp = strstr( file, "src/" );
if( temp )
file = temp + 4;
if( LOG != NULL )
LOG->Warn( "%s:%i: %s", file, line, message );
else