mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 05:42:07 +00:00
Swapped around dirup and curdir
+ made files purple
This commit is contained in:
parent
cd786af805
commit
8ba54003b0
3 changed files with 7 additions and 7 deletions
|
@ -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);
|
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 ((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 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){
|
while(ret >= 0){
|
||||||
gfx_printf(" ");
|
gfx_printf(" ");
|
||||||
|
|
|
@ -65,15 +65,15 @@ void sdexplorer(char *items[], unsigned int *muhbits){
|
||||||
value = fileexplorergui(items, muhbits, path, folderamount);
|
value = fileexplorergui(items, muhbits, path, folderamount);
|
||||||
|
|
||||||
if (value == 1) {
|
if (value == 1) {
|
||||||
|
if (strcmp("sd:/", path) == 0) break;
|
||||||
|
else removepartpath(path);
|
||||||
|
}
|
||||||
|
else if (value == 2) {
|
||||||
if (copymode != -1){
|
if (copymode != -1){
|
||||||
copywithpath(clipboard, path, copymode);
|
copywithpath(clipboard, path, copymode);
|
||||||
copymode = -1;
|
copymode = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (value == 2) {
|
|
||||||
if (strcmp("sd:/", path) == 0) break;
|
|
||||||
else removepartpath(path);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
if(muhbits[value - 1] & OPTION1) addpartpath(path, items[value - 1]);
|
if(muhbits[value - 1] & OPTION1) addpartpath(path, items[value - 1]);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -53,8 +53,8 @@ int readfolder(char *items[], unsigned int *muhbits, const char *path){
|
||||||
DIR dir;
|
DIR dir;
|
||||||
FILINFO fno;
|
FILINFO fno;
|
||||||
int i = 2;
|
int i = 2;
|
||||||
addchartoarray("Clipboard -> current folder", items, 0);
|
addchartoarray("Current folder -> One folder up", items, 0);
|
||||||
addchartoarray("Current folder -> One folder up", items, 1);
|
addchartoarray("Clipboard -> current folder", items, 1);
|
||||||
_mallocandaddfolderbit(muhbits, 0, true);
|
_mallocandaddfolderbit(muhbits, 0, true);
|
||||||
_mallocandaddfolderbit(muhbits, 1, true);
|
_mallocandaddfolderbit(muhbits, 1, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue