fix extra "./" being added to song paths
This commit is contained in:
@@ -448,10 +448,6 @@ void FixupPath( CString &path )
|
|||||||
/* Replace backslashes with slashes in all paths. */
|
/* Replace backslashes with slashes in all paths. */
|
||||||
FixSlashesInPlace( path );
|
FixSlashesInPlace( path );
|
||||||
|
|
||||||
bool StartsWithDot = false;
|
|
||||||
if( path.Left(2) == "./" )
|
|
||||||
StartsWithDot = true;
|
|
||||||
|
|
||||||
CollapsePath( path );
|
CollapsePath( path );
|
||||||
|
|
||||||
/* Many imported files contain erroneous whitespace before or after
|
/* Many imported files contain erroneous whitespace before or after
|
||||||
@@ -459,9 +455,6 @@ void FixupPath( CString &path )
|
|||||||
* so let's just remove it. */
|
* so let's just remove it. */
|
||||||
TrimLeft( path );
|
TrimLeft( path );
|
||||||
TrimRight( path );
|
TrimRight( path );
|
||||||
|
|
||||||
if( StartsWithDot )
|
|
||||||
path = "./" + path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Songs in BlacklistImages will never be autodetected as song images. */
|
/* Songs in BlacklistImages will never be autodetected as song images. */
|
||||||
|
|||||||
Reference in New Issue
Block a user