summaryrefslogtreecommitdiff
path: root/firmware/common/file.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2008-03-11 19:52:07 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2008-03-11 19:52:07 +0000
commitd80246fac010002606d936f6a38057cfa108d172 (patch)
tree292feff402b6bfa765d34b5753ffa61c94507e33 /firmware/common/file.c
parent3da7d7920808b4c713b0315881ec8b79fbf9c098 (diff)
Committed the missing file to r16632.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16634 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r--firmware/common/file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 613eba97df..4e08e50558 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -105,6 +105,9 @@ static int open_internal(const char* pathname, int flags, bool use_cache)
if (dircache_is_enabled() && !file->write && use_cache)
{
const struct dircache_entry *ce;
+# ifdef HAVE_MULTIVOLUME
+ int volume = strip_volume(pathname, pathnamecopy);
+# endif
ce = dircache_get_entry_ptr(pathname);
if (!ce)
@@ -114,7 +117,7 @@ static int open_internal(const char* pathname, int flags, bool use_cache)
return -7;
}
- fat_open(IF_MV2(unsupported at the moment,)
+ fat_open(IF_MV2(volume,)
ce->startcluster,
&(file->fatfile),
NULL);