pref savedefaultpaths uses cliparser, enabled but is not used in the fileutils yet.

This commit is contained in:
iceman1001 2021-01-09 22:44:09 +01:00
parent ee8309e09b
commit 8b7ef202c3
5 changed files with 209 additions and 231 deletions

View file

@ -195,8 +195,8 @@ bool create_path(const char *dirname) {
return true;
}
*/
/*
bool setDefaultPath (savePaths_t pathIndex,const char *Path) {
bool setDefaultPath (savePaths_t pathIndex, const char *Path) {
if (pathIndex < spItemCount) {
if ((Path == NULL) && (session.defaultPaths[pathIndex] != NULL)) {
@ -208,13 +208,11 @@ bool setDefaultPath (savePaths_t pathIndex,const char *Path) {
session.defaultPaths[pathIndex] = (char *)realloc(session.defaultPaths[pathIndex], strlen(Path) + 1);
strcpy(session.defaultPaths[pathIndex], Path);
}
} else {
return false;
return true;
}
return true;
return false;
}
*/
static char *filenamemcopy(const char *preferredName, const char *suffix) {
if (preferredName == NULL) return NULL;
if (suffix == NULL) return NULL;