mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
tagcache: skip search roots that don't exist, instead of aborting
https://forums.rockbox.org/index.php/topic,55459 Change-Id: I0c3fa07f9920ed4caabf3013702b10e59c0b550e
This commit is contained in:
parent
c9e16e4888
commit
8145e326a3
1 changed files with 8 additions and 1 deletions
|
@ -5075,7 +5075,14 @@ void do_tagcache_build(const char *path[])
|
||||||
{
|
{
|
||||||
logf("Search root %s", this->path);
|
logf("Search root %s", this->path);
|
||||||
strmemccpy(curpath, this->path, sizeof(curpath));
|
strmemccpy(curpath, this->path, sizeof(curpath));
|
||||||
ret = ret && check_dir(this->path, true);
|
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
if (dir_exists(this->path))
|
||||||
|
ret = check_dir(this->path, true);
|
||||||
|
else
|
||||||
|
logf("Dir not found %s", this->path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
free_search_roots(&roots_ll[0]);
|
free_search_roots(&roots_ll[0]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue