Cleanup. While I'm at it, might as well skip the "src/" too.
This commit is contained in:
@@ -375,11 +375,10 @@ void Checkpoints::SetCheckpoint( const char *file, int line, const char *message
|
|||||||
if( slot == NULL )
|
if( slot == NULL )
|
||||||
sm_crash( "GetUnknownThreadSlot() returned NULL" );
|
sm_crash( "GetUnknownThreadSlot() returned NULL" );
|
||||||
|
|
||||||
/* Ignore everything before the first "src/". */
|
/* Ignore everything up to and including the first "src/". */
|
||||||
//file = strstr( file, "src/" ) ? strstr( file, "src/" ) : file;
|
|
||||||
const char *temp = strstr( file, "src/" );
|
const char *temp = strstr( file, "src/" );
|
||||||
if (temp)
|
if( temp )
|
||||||
file = temp;
|
file = temp + 4;
|
||||||
slot->Checkpoints[slot->CurCheckpoint].Set( file, line, message );
|
slot->Checkpoints[slot->CurCheckpoint].Set( file, line, message );
|
||||||
|
|
||||||
if( g_LogCheckpoints )
|
if( g_LogCheckpoints )
|
||||||
|
|||||||
Reference in New Issue
Block a user