forked from len0rd/rockbox
consolidate the 3 file_exists() functions into one; use the version that explicitly uses dircache; give dir_exists() the same treatment for consistency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15742 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a2ad8537af
commit
d87b037efe
10 changed files with 50 additions and 65 deletions
|
@ -70,9 +70,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* void_parameter)
|
|||
* if it's a dir and then file (not vice versa) since
|
||||
* open() can also open a dir */
|
||||
found = true;
|
||||
if (dir_exists(parameter)) {
|
||||
if (rb->dir_exists(parameter)) {
|
||||
its_a_dir = true;
|
||||
} else if (file_exists(parameter)) {
|
||||
} else if (rb->file_exists(parameter)) {
|
||||
its_a_dir = false;
|
||||
} else {
|
||||
found = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue