summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-06-23 08:12:19 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-06-23 08:12:19 +0000
commit986675dfd5436caf71c5e250665be8738900cf4e (patch)
tree8e8fac8767628b79059860fba9c09525b3ce9ba1 /apps/settings.c
parentd79b1f5845ed2aefbdc5dc890e89ec443211b20a (diff)
downloadrockbox-986675dfd5436caf71c5e250665be8738900cf4e.tar.gz
rockbox-986675dfd5436caf71c5e250665be8738900cf4e.zip
For non-numeric values, write explainations into the .cfg file. Also fixed a default value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4800 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 7fd5ee96f5..17122ecd84 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -249,7 +249,7 @@ static struct bit_entry hd_bits[] =
249 /* more playback */ 249 /* more playback */
250 {1, S_O(play_selected), true, "play selected", off_on }, 250 {1, S_O(play_selected), true, "play selected", off_on },
251 {1, S_O(fade_on_stop), true, "volume fade", off_on }, 251 {1, S_O(fade_on_stop), true, "volume fade", off_on },
252 {4, S_O(ff_rewind_min_step), 1000, 252 {4, S_O(ff_rewind_min_step), FF_REWIND_1000,
253 "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60" }, 253 "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60" },
254 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL }, 254 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL },
255 {3, S_O(buffer_margin), 0, "antiskip", NULL }, 255 {3, S_O(buffer_margin), 0, "antiskip", NULL },
@@ -1109,6 +1109,8 @@ static void save_cfg_table(const struct bit_entry* p_table, int count, int fd)
1109 } 1109 }
1110 1110
1111 fprintf(fd, "\r\n"); 1111 fprintf(fd, "\r\n");
1112 if (p_run->cfg_val != off_on) /* explaination for non-bool */
1113 fprintf(fd, "# (possible values: %s)\r\n", p_run->cfg_val);
1112 } 1114 }
1113 } 1115 }
1114} 1116}