forked from len0rd/rockbox
Added caption backlight to .cfg loader (Henrik Backe)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3598 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8d4471d57c
commit
523d99f284
1 changed files with 9 additions and 0 deletions
|
|
@ -955,6 +955,8 @@ bool settings_load_config(char* file)
|
|||
else if (!strcasecmp(name, "invert cursor"))
|
||||
set_cfg_bool(&global_settings.invert_cursor, value);
|
||||
#endif
|
||||
else if (!strcasecmp(name, "caption backlight"))
|
||||
set_cfg_bool(&global_settings.caption_backlight, value);
|
||||
else if (!strcasecmp(name, "shuffle"))
|
||||
set_cfg_bool(&global_settings.playlist_shuffle, value);
|
||||
else if (!strcasecmp(name, "repeat")) {
|
||||
|
|
@ -1312,6 +1314,13 @@ bool settings_save_config(void)
|
|||
write(fd, buf, strlen(buf));
|
||||
}
|
||||
|
||||
{
|
||||
static char* options[] = {"off","on"};
|
||||
snprintf(buf, sizeof(buf), "caption backlight: %s\r\n",
|
||||
options[global_settings.caption_backlight]);
|
||||
write(fd, buf, strlen(buf));
|
||||
}
|
||||
|
||||
snprintf(buf, sizeof(buf), "contrast: %d\r\n", global_settings.contrast);
|
||||
write(fd, buf, strlen(buf));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue