1
0
Fork 0
forked from len0rd/rockbox

Added disk space to Info menu item. (Players press + to see it.)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2837 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-11-12 11:32:26 +00:00
parent 8a727cecdb
commit 6fb512aba5
5 changed files with 105 additions and 37 deletions

View file

@ -223,6 +223,14 @@ int fat_startsector(void)
return fat_bpb.startsector;
}
void fat_size(unsigned int* size, unsigned int* free)
{
if (size)
*size = fat_bpb.dataclusters * fat_bpb.bpb_secperclus / 2;
if (free)
*free = fat_bpb.fsinfo.freecount * fat_bpb.bpb_secperclus / 2;
}
int fat_mount(int startsector)
{
unsigned char buf[SECTOR_SIZE];