From c45be1258a77be8736950bdf1aca498fcef6751d Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Sat, 2 May 2020 19:29:55 +0200 Subject: [PATCH] Add more invalid chars --- source/tegraexplorer/common/structs.c | 2 +- source/tegraexplorer/utils/utils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tegraexplorer/common/structs.c b/source/tegraexplorer/common/structs.c index 2db40d7..13593d4 100644 --- a/source/tegraexplorer/common/structs.c +++ b/source/tegraexplorer/common/structs.c @@ -61,7 +61,7 @@ menu_entry fs_menu_folder[] = { {"\nBack", COLOR_WHITE, ISMENU}, {"Return to main menu\n", COLOR_BLUE, ISMENU}, {"Copy to clipboard", COLOR_VIOLET, ISMENU}, - {"Delete folder", COLOR_RED, ISMENU}, + {"Delete folder\n", COLOR_RED, ISMENU}, {"Rename folder", COLOR_BLUE, ISMENU}, {"Create folder", COLOR_BLUE, ISMENU} }; diff --git a/source/tegraexplorer/utils/utils.c b/source/tegraexplorer/utils/utils.c index 1ec981a..fc88a73 100644 --- a/source/tegraexplorer/utils/utils.c +++ b/source/tegraexplorer/utils/utils.c @@ -100,13 +100,13 @@ char *utils_InputText(char *start, int maxLen){ if (input->buttons & (KEY_LDOWN | KEY_RDOWN) && buff[currentPos] < 126){ temp = ++buff[currentPos]; - while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|') + while (strchr("\\\"*/:<=>?|+;=[]", temp) != NULL) temp = ++buff[currentPos]; } if (input->buttons & (KEY_LUP | KEY_RUP) && buff[currentPos] > 32){ temp = --buff[currentPos]; - while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|') + while (strchr("\\\"*/:<=>?|+;=[]", temp) != NULL) temp = --buff[currentPos]; }