mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Don't save settings on disk if it has no partition table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1712 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6f3a1395e
commit
113fffaa86
3 changed files with 7 additions and 1 deletions
|
|
@ -218,6 +218,11 @@ static int first_sector_of_cluster(int cluster)
|
|||
return (cluster - 2) * fat_bpb.bpb_secperclus + fat_bpb.firstdatasector;
|
||||
}
|
||||
|
||||
int fat_startsector(void)
|
||||
{
|
||||
return fat_bpb.startsector;
|
||||
}
|
||||
|
||||
int fat_mount(int startsector)
|
||||
{
|
||||
unsigned char buf[SECTOR_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue