From 1b0c19d442b1e958ea2daa3d4b2add762873cbe9 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 18 Mar 2006 09:22:56 +0000 Subject: [PATCH] Copy code from RageThreads.cpp. --- stepmania/src/RageLog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index aa560af4d2..7fb47ca408 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -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