From 7b6c19f8204ee2f570f78dcdc43f17293e02c3f2 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Tue, 17 Dec 2019 13:50:02 +0100 Subject: [PATCH] Add check for <32gb sd cards for partitioning --- source/tegraexplorer/tools.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/tegraexplorer/tools.c b/source/tegraexplorer/tools.c index 9622757..ce3af26 100644 --- a/source/tegraexplorer/tools.c +++ b/source/tegraexplorer/tools.c @@ -156,15 +156,12 @@ int format(int mode){ timer = get_tmr_s(); totalsectors = sd_storage.csd.capacity; - // 32gb sd card size is 67108864‬? - if (mode == 0){ - if (totalsectors < 61145088){ - gfx_printf("%k\nNot enough free space for emummc!", COLOR_RED); + if (totalsectors < 83886080){ + gfx_printf("%kYou seem to be running this on a <32GB SD\nNot enough free space for emummc!", COLOR_RED); fatalerror = true; } - - if (!fatalerror){ + else { plist[0] = totalsectors - 61145088; gfx_printf("\nStarting SD partitioning:\nTotalSectors: %d\nPartition1 (SD): %d\nPartition2 (EMUMMC): %d\n", totalsectors, plist[0], plist[1]); }