Don't show drive size for now

This commit is contained in:
RocketRobz 2018-10-21 20:25:21 -06:00
parent 5766b4e040
commit e93e2e1794
2 changed files with 14 additions and 12 deletions

View File

@ -217,17 +217,19 @@ void dm_drawBottomScreen(void) {
if (sdLabel[0] != '\0') { if (sdLabel[0] != '\0') {
iprintf (" (%s)", sdLabel); iprintf (" (%s)", sdLabel);
} }
printf ("\n(SD FAT, "); printf ("\n(SD FAT)");
printBytes(sdSize); //printf ("\n(SD FAT, ");
printf(")"); //printBytes(sdSize);
//printf(")");
} else if (dmAssignedOp[dmCursorPosition] == 1) { } else if (dmAssignedOp[dmCursorPosition] == 1) {
printf ("[fat:] FLASHCART"); printf ("[fat:] FLASHCART");
if (fatLabel[0] != '\0') { if (fatLabel[0] != '\0') {
iprintf (" (%s)", fatLabel); iprintf (" (%s)", fatLabel);
} }
printf ("\n(Slot-1 SD FAT, "); printf ("\n(Slot-1 SD FAT)");
printBytes(fatSize); //printf ("\n(Slot-1 SD FAT, ");
printf(")"); //printBytes(fatSize);
//printf(")");
} else if (dmAssignedOp[dmCursorPosition] == 2) { } else if (dmAssignedOp[dmCursorPosition] == 2) {
printf ("GBA GAMECART\n"); printf ("GBA GAMECART\n");
printf ("(GBA Game)"); printf ("(GBA Game)");

View File

@ -80,10 +80,10 @@ TWL_CODE bool sdMount(void) {
sdMountedDone = true; sdMountedDone = true;
fatGetVolumeLabel("sd", sdLabel); fatGetVolumeLabel("sd", sdLabel);
fixLabel(false); fixLabel(false);
struct statvfs st; /*struct statvfs st;
if (statvfs("sd:/", &st) == 0) { if (statvfs("sd:/", &st) == 0) {
sdSize = st.f_bsize * st.f_blocks; sdSize = st.f_bsize * st.f_blocks;
} }*/
return true; return true;
} }
return false; return false;
@ -219,10 +219,10 @@ TWL_CODE bool twl_flashcardMount(void) {
if (flashcardFound()) { if (flashcardFound()) {
fatGetVolumeLabel("fat", fatLabel); fatGetVolumeLabel("fat", fatLabel);
fixLabel(true); fixLabel(true);
struct statvfs st; /*struct statvfs st;
if (statvfs("fat:/", &st) == 0) { if (statvfs("fat:/", &st) == 0) {
fatSize = st.f_bsize * st.f_blocks; fatSize = st.f_bsize * st.f_blocks;
} }*/
return true; return true;
} }
} }
@ -235,10 +235,10 @@ bool flashcardMount(void) {
if (flashcardFound()) { if (flashcardFound()) {
fatGetVolumeLabel("fat", fatLabel); fatGetVolumeLabel("fat", fatLabel);
fixLabel(true); fixLabel(true);
struct statvfs st; /*struct statvfs st;
if (statvfs("fat:/", &st) == 0) { if (statvfs("fat:/", &st) == 0) {
fatSize = st.f_bsize * st.f_blocks; fatSize = st.f_bsize * st.f_blocks;
} }*/
return true; return true;
} }
return false; return false;