1
0
Fork 0
forked from len0rd/rockbox

cuesheet: Search for /path/to/music.mp3.cue as well if all fails.

Change-Id: If58ea7c7b94de54f6d9b014f069807bb88c6a147
This commit is contained in:
Konstantin Kudakov 2014-01-03 16:30:26 +01:00 committed by Thomas Martitz
parent 5d37d2579a
commit 8c286b4686

View file

@ -75,7 +75,12 @@ bool look_for_cuesheet_file(struct mp3entry *track_id3, struct cuesheet_file *cu
char *dot = strrchr(cuepath, '.');
strcpy(dot, ".cue");
if (!file_exists(cuepath))
return false;
{
strlcpy(cuepath, track_id3->path, MAX_PATH);
strlcat(cuepath, ".cue", MAX_PATH);
if (!file_exists(cuepath))
return false;
}
}
strlcpy(cue_file->path, cuepath, MAX_PATH);