mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
Volume label entries are now hidden.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libhxcfe/trunk@932 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -809,10 +809,13 @@ int fatfs_list_directory_next(struct fatfs *fs, struct fs_dir_list_status *dirls
|
||||
entry->size = FAT_HTONL(directoryEntry->FileSize);
|
||||
entry->cluster = ((uint32)(FAT_HTONS(directoryEntry->FstClusHI))<<16) | (uint32)FAT_HTONS(directoryEntry->FstClusLO);
|
||||
|
||||
// Next starting position
|
||||
dirls->offset = item + 1;
|
||||
result = 1;
|
||||
return 1;
|
||||
if( !( directoryEntry->Attr & 0x08 ) ) //Volume label ?
|
||||
{
|
||||
// Next starting position
|
||||
dirls->offset = item + 1;
|
||||
result = 1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
// Normal Entry, only 8.3 Text
|
||||
else
|
||||
@@ -858,10 +861,13 @@ int fatfs_list_directory_next(struct fatfs *fs, struct fs_dir_list_status *dirls
|
||||
entry->size = FAT_HTONL(directoryEntry->FileSize);
|
||||
entry->cluster = ((uint32)(FAT_HTONS(directoryEntry->FstClusHI))<<16) | (uint32)FAT_HTONS(directoryEntry->FstClusLO);
|
||||
|
||||
// Next starting position
|
||||
dirls->offset = item + 1;
|
||||
result = 1;
|
||||
return 1;
|
||||
if( !( directoryEntry->Attr & 0x08 ) ) //Volume label ?
|
||||
{
|
||||
// Next starting position
|
||||
dirls->offset = item + 1;
|
||||
result = 1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}// end of for
|
||||
|
||||
|
||||
Reference in New Issue
Block a user