diff --git a/client/src/preferences.c b/client/src/preferences.c index b649a6f13..73cd60293 100644 --- a/client/src/preferences.c +++ b/client/src/preferences.c @@ -827,51 +827,6 @@ static int setCmdSavePaths (const char *Cmd) { showSavePathState(pathItem, prefShowNone); } } - - /* - // Default - if (strncmp(strOpt, "default", 7) == 0) { - if (strcmp(newValue, session.defaultPaths[spDefault]) != 0) { - showSavePathState(spDefault, prefShowOLD); - setDefaultPath (spDefault, newValue); -// session.defaultPaths[spDefault] = (char *)realloc(session.defaultPaths[spDefault], strlen(newValue) + 1); -// strcpy (session.defaultPaths[spDefault],newValue); - showSavePathState(spDefault, prefShowNEW); - preferences_save(); - } else { - PrintAndLogEx(INFO, "nothing changed"); - showSavePathState(spDefault, prefShowNone); - } - } - // Dump - if (strncmp(strOpt, "dump", 4) == 0) { - if (strcmp(newValue, session.defaultPaths[spDump]) != 0) { - showSavePathState(spDump, prefShowOLD); - setDefaultPath (spDump, newValue); -// session.defaultPaths[spDump] = (char *)realloc(session.defaultPaths[spDump], strlen(newValue) + 1); -// strcpy (session.defaultPaths[spDump],newValue); - showSavePathState(spDump, prefShowNEW); - preferences_save(); - } else { - PrintAndLogEx(INFO, "nothing changed"); - showSavePathState(spDump, prefShowNone); - } - } - // Trace - if (strncmp(strOpt, "trace", 7) == 0) { - if (strcmp(newValue, session.defaultPaths[spTrace]) != 0) { - showSavePathState(spTrace, prefShowOLD); - setDefaultPath (spTrace, newValue); -// session.defaultPaths[spTrace] = (char *)realloc(session.defaultPaths[spTrace], strlen(newValue) + 1); -// strcpy (session.defaultPaths[spTrace],newValue); - showSavePathState(spTrace,prefShowNEW); - preferences_save(); - } else { - PrintAndLogEx(INFO, "nothing changed"); - showSavePathState(spTrace,prefShowNone); - } - } - */ } } else { return usage_set_savePaths(); diff --git a/client/src/ui.h b/client/src/ui.h index 80d1794df..f691de450 100644 --- a/client/src/ui.h +++ b/client/src/ui.h @@ -19,8 +19,8 @@ typedef enum logLevel {NORMAL, SUCCESS, INFO, FAILED, WARNING, ERR, DEBUG, INPLACE, HINT} logLevel_t; typedef enum emojiMode {ALIAS, EMOJI, ALTTEXT, ERASE} emojiMode_t; -typedef enum clientdebugLevel {cdbOFF,cdbSIMPLE,cdbFULL} clientdebugLevel_t; -typedef enum devicedebugLevel {ddbOFF,ddbERROR,ddbINFO,ddbDEBUG,ddbEXTENDED} devicedebugLevel_t; +typedef enum clientdebugLevel {cdbOFF, cdbSIMPLE, cdbFULL} clientdebugLevel_t; +typedef enum devicedebugLevel {ddbOFF, ddbERROR, ddbINFO, ddbDEBUG, ddbEXTENDED} devicedebugLevel_t; typedef enum savePaths {spDefault, spDump, spTrace, spItemCount} savePaths_t; // last item spItemCount used to auto map to number of files typedef struct {int x; int y; int h; int w;} qtWindow_t;