1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-22 18:32:05 +00:00

fss: seems ext_csd is not initialized by then

This commit is contained in:
Michael Scire 2019-03-06 08:34:33 -08:00
parent ed37c149d1
commit e25d83f701

View file

@ -316,7 +316,7 @@ int nxfs_mount_all(void) {
model = g_mmc_devpart_template;
model.device_struct = &g_emmc_user_mmcpart;
model.start_sector = 0;
model.num_sectors = *(uint32_t*)&g_emmc_user_mmcpart.device->ext_csd.raw_sectors[0];
model.num_sectors = (256ull << 30) / model.sector_size;
rc = rawdev_mount_device("rawnand", &model, false);