forked from len0rd/rockbox
Save empty filename settings when necessary. Fixes the inability to save the 'no backdrop' setting due to the new default.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16384 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a32de4f25f
commit
db70f8d20b
1 changed files with 3 additions and 5 deletions
|
@ -524,9 +524,8 @@ static bool settings_write_config(char* filename, int options)
|
||||||
break;
|
break;
|
||||||
case F_T_CHARPTR:
|
case F_T_CHARPTR:
|
||||||
case F_T_UCHARPTR:
|
case F_T_UCHARPTR:
|
||||||
if (((char*)settings[i].setting)[0] == '\0')
|
if (((char*)settings[i].setting)[0]
|
||||||
break;
|
&& settings[i].filename_setting->prefix)
|
||||||
if (settings[i].filename_setting->prefix)
|
|
||||||
{
|
{
|
||||||
snprintf(value,MAX_PATH,"%s%s%s",
|
snprintf(value,MAX_PATH,"%s%s%s",
|
||||||
settings[i].filename_setting->prefix,
|
settings[i].filename_setting->prefix,
|
||||||
|
@ -537,7 +536,6 @@ static bool settings_write_config(char* filename, int options)
|
||||||
settings[i].filename_setting->max_len);
|
settings[i].filename_setting->max_len);
|
||||||
break;
|
break;
|
||||||
} /* switch () */
|
} /* switch () */
|
||||||
if (value[0])
|
|
||||||
fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value);
|
fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value);
|
||||||
} /* for(...) */
|
} /* for(...) */
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue