diff --git a/arm9/source/fileOperations.cpp b/arm9/source/fileOperations.cpp index 304f670..d837da3 100644 --- a/arm9/source/fileOperations.cpp +++ b/arm9/source/fileOperations.cpp @@ -22,8 +22,11 @@ bool clipboardInNitro = false; void printBytes(int bytes) { - if (abs(bytes) < 1024) - iprintf("%d B", bytes); + if (abs(bytes) == 1) + iprintf("%d Byte", bytes); + + else if (abs(bytes) < 1024) + iprintf("%d Bytes", bytes); else if (abs(bytes) < 1024 * 1024) printf("%.1f KB", (float)bytes / 1024); diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index e788c01..7ca2aed 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -38,7 +38,7 @@ #include "driveOperations.h" #include "nitrofs.h" -#define SCREEN_COLS 23 +#define SCREEN_COLS 22 #define ENTRIES_PER_SCREEN 23 #define ENTRIES_START_ROW 1 #define OPTIONS_ENTRIES_START_ROW 2 @@ -169,7 +169,7 @@ void showDirectoryContents (const vector& dirContents, int fileOffset, printf ("\x1b[%d;27H", i + ENTRIES_START_ROW); printf ("(dir)"); } else { - printf ("\x1b[%d;24H", i + ENTRIES_START_ROW); + printf ("\x1b[%d;23H", i + ENTRIES_START_ROW); printBytes((int)entry->size); } } @@ -415,6 +415,8 @@ void fileBrowse_drawBottomScreen(DirEntry* entry, int fileOffset) { if (strcmp(entry->name.c_str(), "..") != 0) { if (entry->isDirectory) { printf ("(dir)"); + } else if (entry->size == 1) { + printf ("%i Byte", (int)entry->size); } else { printf ("%i Bytes", (int)entry->size); }