diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-19 17:31:35 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-19 17:31:35 +0000 |
commit | 702dd052aef8e8da640cf1284ba15b3098b2a6f2 (patch) | |
tree | 1bde50a4a62fe6d738b52d143edcf07bd24ec208 /firmware/drivers/fat.c | |
parent | 866600216e9970222e65eb019f2893b8938f3cd0 (diff) | |
download | rockbox-702dd052aef8e8da640cf1284ba15b3098b2a6f2.tar.gz rockbox-702dd052aef8e8da640cf1284ba15b3098b2a6f2.zip |
Ignore volume ID
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1096 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 8d5057bd89..ee0c8eef44 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -1010,6 +1010,10 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry) | |||
1010 | else { | 1010 | else { |
1011 | if ( parse_direntry(entry, &dir->cached_buf[i*32]) ) { | 1011 | if ( parse_direntry(entry, &dir->cached_buf[i*32]) ) { |
1012 | 1012 | ||
1013 | /* don't return volume id entry */ | ||
1014 | if ( entry->attr == FAT_ATTR_VOLUME_ID ) | ||
1015 | continue; | ||
1016 | |||
1013 | /* replace shortname with longname? */ | 1017 | /* replace shortname with longname? */ |
1014 | if ( longs ) { | 1018 | if ( longs ) { |
1015 | int j,k,l=0; | 1019 | int j,k,l=0; |
@@ -1115,3 +1119,9 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry) | |||
1115 | } | 1119 | } |
1116 | return 0; | 1120 | return 0; |
1117 | } | 1121 | } |
1122 | |||
1123 | /* ----------------------------------------------------------------- | ||
1124 | * local variables: | ||
1125 | * eval: (load-file "../rockbox-mode.el") | ||
1126 | * end: | ||
1127 | */ | ||