From 986675dfd5436caf71c5e250665be8738900cf4e Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Wed, 23 Jun 2004 08:12:19 +0000 Subject: 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 --- apps/settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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[] = /* more playback */ {1, S_O(play_selected), true, "play selected", off_on }, {1, S_O(fade_on_stop), true, "volume fade", off_on }, - {4, S_O(ff_rewind_min_step), 1000, + {4, S_O(ff_rewind_min_step), FF_REWIND_1000, "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60" }, {4, S_O(ff_rewind_accel), 3, "scan accel", NULL }, {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) } fprintf(fd, "\r\n"); + if (p_run->cfg_val != off_on) /* explaination for non-bool */ + fprintf(fd, "# (possible values: %s)\r\n", p_run->cfg_val); } } } -- cgit v1.2.3