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:
parent
5d37d2579a
commit
8c286b4686
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue