Only issue a warning if the sd cluster size is too big

Allow continuing with install/uninstall
This commit is contained in:
Edoardo Lolletti 2025-08-12 21:02:39 +02:00
parent 6a3289b444
commit d7aa0970b1

View File

@ -207,8 +207,13 @@ void setup() {
u32 clusterSize = getClusterSizeForPartition("sd:/"); u32 clusterSize = getClusterSizeForPartition("sd:/");
if(clusterSize > 32768) if(clusterSize > 32768)
{ {
messageBox("Sd card cluster size is too large"); messageBox(std::format("\x1B[41mWARNING:\x1B[47m This SD card cluster\n"
exit(0); "size is currently {}KB,\n"
"which is too large for Unlaunch\n"
"to work.\n"
"If you install it, Unlaunch\n"
"won't boot as long as this SD\n"
"card is inserted.", clusterSize / 1024).data());
} }
//setup nand access //setup nand access