mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 05:42:07 +00:00
Add check for <32gb sd cards for partitioning
This commit is contained in:
parent
3274d18b83
commit
7b6c19f820
1 changed files with 3 additions and 6 deletions
|
@ -156,15 +156,12 @@ int format(int mode){
|
||||||
timer = get_tmr_s();
|
timer = get_tmr_s();
|
||||||
totalsectors = sd_storage.csd.capacity;
|
totalsectors = sd_storage.csd.capacity;
|
||||||
|
|
||||||
// 32gb sd card size is 67108864?
|
|
||||||
|
|
||||||
if (mode == 0){
|
if (mode == 0){
|
||||||
if (totalsectors < 61145088){
|
if (totalsectors < 83886080){
|
||||||
gfx_printf("%k\nNot enough free space for emummc!", COLOR_RED);
|
gfx_printf("%kYou seem to be running this on a <32GB SD\nNot enough free space for emummc!", COLOR_RED);
|
||||||
fatalerror = true;
|
fatalerror = true;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
if (!fatalerror){
|
|
||||||
plist[0] = totalsectors - 61145088;
|
plist[0] = totalsectors - 61145088;
|
||||||
gfx_printf("\nStarting SD partitioning:\nTotalSectors: %d\nPartition1 (SD): %d\nPartition2 (EMUMMC): %d\n", totalsectors, plist[0], plist[1]);
|
gfx_printf("\nStarting SD partitioning:\nTotalSectors: %d\nPartition1 (SD): %d\nPartition2 (EMUMMC): %d\n", totalsectors, plist[0], plist[1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue