diff --git a/source/tegraexplorer/gfx.c b/source/tegraexplorer/gfx.c index 07a610e..30f45d8 100644 --- a/source/tegraexplorer/gfx.c +++ b/source/tegraexplorer/gfx.c @@ -127,26 +127,33 @@ void printfsentry(fs_entry file, bool highlight, bool refresh){ if (highlight) gfx_printf("%K%k", COLOR_WHITE, COLOR_DEFAULT); else - gfx_printf("%K%k", COLOR_DEFAULT, COLOR_WHITE); + RESETCOLOR; if (file.property & ISDIR) - gfx_printf("%s\n", display); + gfx_printf("%s", display); else { for (size = 4; size < 8; size++) if ((file.property & (1 << size))) break; - gfx_printf("%k%s%K", COLOR_VIOLET, display, COLOR_DEFAULT); + SWAPCOLOR(COLOR_VIOLET); + gfx_printf("%s", display); } + RESETCOLOR; + if (refresh){ length = strlen(display); for (int i = 0; i < (42 - length); i++) gfx_printf(" "); } - if (!(file.property & ISDIR)) + if (file.property & ISDIR) + gfx_printf("\n"); + else { + SWAPCOLOR(COLOR_BLUE); gfx_printf("\a%d\e%s", file.size, sizevalues[size - 4]); + } free(display); } diff --git a/source/tegraexplorer/tools.c b/source/tegraexplorer/tools.c index ce3af26..e9679a3 100644 --- a/source/tegraexplorer/tools.c +++ b/source/tegraexplorer/tools.c @@ -66,7 +66,7 @@ void displayinfo(){ void displaygpio(){ int res; clearscreen(); - gfx_printf("Updates gpio pins ever 50ms:\nPress power to exit"); + gfx_printf("Updates gpio pins every 50ms:\nPress power to exit"); msleep(200); while (1){ msleep(10); @@ -158,7 +158,7 @@ int format(int mode){ if (mode == 0){ if (totalsectors < 83886080){ - gfx_printf("%kYou seem to be running this on a <32GB SD\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; } else {