diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:16:07 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:16:07 +0000 |
commit | da848576312800dc229624e928d132d0702c1854 (patch) | |
tree | 38cd01b8a9c1069a1de734e0f7eb478436715573 /firmware/common/file.c | |
parent | ae45d970d874217b779071b414dcd5edbf5647da (diff) | |
download | rockbox-da848576312800dc229624e928d132d0702c1854.tar.gz rockbox-da848576312800dc229624e928d132d0702c1854.zip |
prepared to mount multiple partitions into one logical file system (most useful for Ondio, internal memory + external MMC)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r-- | firmware/common/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 81b5a194c0..6714b9982c 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -132,7 +132,8 @@ int open(const char* pathname, int flags) | |||
132 | /* scan dir for name */ | 132 | /* scan dir for name */ |
133 | while ((entry = readdir(dir))) { | 133 | while ((entry = readdir(dir))) { |
134 | if ( !strcasecmp(name, entry->d_name) ) { | 134 | if ( !strcasecmp(name, entry->d_name) ) { |
135 | fat_open(entry->startcluster, | 135 | fat_open(IF_MV2(dir->fatdir.file.volume,) |
136 | entry->startcluster, | ||
136 | &(file->fatfile), | 137 | &(file->fatfile), |
137 | &(dir->fatdir)); | 138 | &(dir->fatdir)); |
138 | file->size = file->trunc ? 0 : entry->size; | 139 | file->size = file->trunc ? 0 : entry->size; |