summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-10-06 21:37:46 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-10-06 21:37:46 +0000
commitd48442039ed399c0ba5ae51bc42d56b5b23f1bc4 (patch)
treeaaed266e96ce32e43490c8fca364e931e1667288 /apps/settings.c
parent6f9a7eb2c7d6f81e54b47c917be79f5126ba8982 (diff)
downloadrockbox-d48442039ed399c0ba5ae51bc42d56b5b23f1bc4.tar.gz
rockbox-d48442039ed399c0ba5ae51bc42d56b5b23f1bc4.zip
patch #978765 by Carsten Tschach, new option for voice filenames: every file may have an optional .talk companion, with a filename clip. While at it, I removed the "on enter" directory talking, nobody used it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 45ea7de072..10333b15c1 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -71,7 +71,7 @@ const char rec_base_directory[] = REC_BASE_DIR;
71 71
72 72
73 73
74#define CONFIG_BLOCK_VERSION 16 74#define CONFIG_BLOCK_VERSION 17
75#define CONFIG_BLOCK_SIZE 512 75#define CONFIG_BLOCK_SIZE 512
76#define RTC_BLOCK_SIZE 44 76#define RTC_BLOCK_SIZE 44
77 77
@@ -150,6 +150,7 @@ Rest of config block, only saved to disk:
150static const char off_on[] = "off,on"; 150static const char off_on[] = "off,on";
151static const char off_on_ask[] = "off,on,ask"; 151static const char off_on_ask[] = "off,on,ask";
152static const char graphic_numeric[] = "graphic,numeric"; 152static const char graphic_numeric[] = "graphic,numeric";
153static const char off_number_spell_hover[] = "off,number,spell,hover";
153 154
154/* the part of the settings which ends up in the RTC RAM, where available 155/* the part of the settings which ends up in the RTC RAM, where available
155 (those we either need early, save frequently, or without spinup) */ 156 (those we either need early, save frequently, or without spinup) */
@@ -319,8 +320,8 @@ static const struct bit_entry hd_bits[] =
319 {1, S_O(line_in), false, "line in", off_on }, 320 {1, S_O(line_in), false, "line in", off_on },
320#endif 321#endif
321 /* voice */ 322 /* voice */
322 {3, S_O(talk_dir), 0, "talk dir", "off,number,spell,enter,hover" }, 323 {2, S_O(talk_dir), 0, "talk dir", off_number_spell_hover },
323 {2, S_O(talk_file), 0, "talk file", "off,number,spell" }, 324 {2, S_O(talk_file), 0, "talk file", off_number_spell_hover },
324 {1, S_O(talk_menu), true, "talk menu", off_on }, 325 {1, S_O(talk_menu), true, "talk menu", off_on },
325 326
326 /* If values are just added to the end, no need to bump the version. */ 327 /* If values are just added to the end, no need to bump the version. */