mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
fusee: dynamically read NAND num_sectors (thanks @shchmue!)
This commit is contained in:
parent
e24d7a1fd2
commit
c9b88f0404
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ int nxfs_mount_all(void) {
|
||||||
model = g_mmc_devpart_template;
|
model = g_mmc_devpart_template;
|
||||||
model.device_struct = &g_emmc_user_mmcpart;
|
model.device_struct = &g_emmc_user_mmcpart;
|
||||||
model.start_sector = 0;
|
model.start_sector = 0;
|
||||||
model.num_sectors = (32ull << 30) / model.sector_size;
|
model.num_sectors = g_emmc_user_mmcpart.device->ext_csd.sectors;
|
||||||
|
|
||||||
rc = rawdev_mount_device("rawnand", &model, false);
|
rc = rawdev_mount_device("rawnand", &model, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue