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 /apps/settings.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 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c index ff9c57d136..d4945d4431 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -513,8 +513,7 @@ static int load_config_buffer(int which) | |||
513 | if (which & SETTINGS_HD) | 513 | if (which & SETTINGS_HD) |
514 | { | 514 | { |
515 | if (config_sector != 0) { | 515 | if (config_sector != 0) { |
516 | ata_read_sectors( config_sector, 1, config_block); | 516 | ata_read_sectors(IF_MV2(0,) config_sector, 1, config_block); |
517 | |||
518 | /* calculate the checksum, check it and the header */ | 517 | /* calculate the checksum, check it and the header */ |
519 | chksum = calculate_config_checksum(config_block); | 518 | chksum = calculate_config_checksum(config_block); |
520 | 519 | ||
@@ -623,7 +622,7 @@ void settings_calc_config_sector(void) | |||
623 | int i, partition_start; | 622 | int i, partition_start; |
624 | int sector = 0; | 623 | int sector = 0; |
625 | 624 | ||
626 | if (fat_startsector() != 0) /* There is a partition table */ | 625 | if (fat_startsector(IF_MV(0)) != 0) /* There is a partition table */ |
627 | { | 626 | { |
628 | sector = 61; | 627 | sector = 61; |
629 | for (i = 0; i < 4; i++) | 628 | for (i = 0; i < 4; i++) |