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;
|
||||
case F_T_CHARPTR:
|
||||
case F_T_UCHARPTR:
|
||||
if (((char*)settings[i].setting)[0] == '\0')
|
||||
break;
|
||||
if (settings[i].filename_setting->prefix)
|
||||
if (((char*)settings[i].setting)[0]
|
||||
&& settings[i].filename_setting->prefix)
|
||||
{
|
||||
snprintf(value,MAX_PATH,"%s%s%s",
|
||||
settings[i].filename_setting->prefix,
|
||||
|
@ -537,8 +536,7 @@ static bool settings_write_config(char* filename, int options)
|
|||
settings[i].filename_setting->max_len);
|
||||
break;
|
||||
} /* 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(...) */
|
||||
close(fd);
|
||||
#if CONFIG_TUNER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue