From 8ba54003b0452e51c1a6caae9316364c14fba6d8 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Fri, 16 Aug 2019 18:40:09 +0200 Subject: [PATCH] Swapped around dirup and curdir + made files purple --- source/meme/graphics.c | 2 +- source/meme/mainfunctions.c | 8 ++++---- source/meme/utils.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/meme/graphics.c b/source/meme/graphics.c index 4106a199..7b884403 100644 --- a/source/meme/graphics.c +++ b/source/meme/graphics.c @@ -66,7 +66,7 @@ void _printwithhighlight(int offset, int folderamount, char *items[], int highli if(i == highlight - 1) gfx_printf("\n%k%p%s%k%p", COLOR_DEFAULT, COLOR_WHITE, temp, COLOR_WHITE, COLOR_DEFAULT); else if ((i == 0 || i == 1) && offset == 0) gfx_printf("%k\n%s%k", COLOR_ORANGE, temp, COLOR_WHITE); else if (muhbits[i+offset] & OPTION1) gfx_printf("\n%s", temp); - else gfx_printf("%k\n%s%k", COLOR_BLUE, temp, COLOR_WHITE); + else gfx_printf("%k\n%s%k", COLOR_VIOLET, temp, COLOR_WHITE); while(ret >= 0){ gfx_printf(" "); diff --git a/source/meme/mainfunctions.c b/source/meme/mainfunctions.c index 75ddd8ca..4629fa2e 100644 --- a/source/meme/mainfunctions.c +++ b/source/meme/mainfunctions.c @@ -65,15 +65,15 @@ void sdexplorer(char *items[], unsigned int *muhbits){ value = fileexplorergui(items, muhbits, path, folderamount); if (value == 1) { + if (strcmp("sd:/", path) == 0) break; + else removepartpath(path); + } + else if (value == 2) { if (copymode != -1){ copywithpath(clipboard, path, copymode); copymode = -1; } } - else if (value == 2) { - if (strcmp("sd:/", path) == 0) break; - else removepartpath(path); - } else { if(muhbits[value - 1] & OPTION1) addpartpath(path, items[value - 1]); else { diff --git a/source/meme/utils.c b/source/meme/utils.c index 559b5b9f..5128c6e5 100644 --- a/source/meme/utils.c +++ b/source/meme/utils.c @@ -53,8 +53,8 @@ int readfolder(char *items[], unsigned int *muhbits, const char *path){ DIR dir; FILINFO fno; int i = 2; - addchartoarray("Clipboard -> current folder", items, 0); - addchartoarray("Current folder -> One folder up", items, 1); + addchartoarray("Current folder -> One folder up", items, 0); + addchartoarray("Clipboard -> current folder", items, 1); _mallocandaddfolderbit(muhbits, 0, true); _mallocandaddfolderbit(muhbits, 1, true);