summaryrefslogtreecommitdiff
path: root/apps/settings_menu.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_menu.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_menu.c')
-rw-r--r--apps/settings_menu.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 624274520f..4e9ec25d79 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -898,28 +898,24 @@ static bool voice_menus(void)
898 return ret; 898 return ret;
899} 899}
900 900
901/* this is used 2 times below, so it saves memory to put it in global scope */
902static const struct opt_items voice_names[] = {
903 { STR(LANG_OFF) },
904 { STR(LANG_VOICE_NUMBER) },
905 { STR(LANG_VOICE_SPELL) },
906 { STR(LANG_VOICE_DIR_HOVER) }
907};
908
901static bool voice_dirs(void) 909static bool voice_dirs(void)
902{ 910{
903 static const struct opt_items names[] = {
904 { STR(LANG_OFF) },
905 { STR(LANG_VOICE_NUMBER) },
906 { STR(LANG_VOICE_SPELL) },
907 { STR(LANG_VOICE_DIR_ENTER) },
908 { STR(LANG_VOICE_DIR_HOVER) }
909 };
910 return set_option( str(LANG_VOICE_DIR), 911 return set_option( str(LANG_VOICE_DIR),
911 &global_settings.talk_dir, INT, names, 5, NULL); 912 &global_settings.talk_dir, INT, voice_names, 4, NULL);
912} 913}
913 914
914static bool voice_files(void) 915static bool voice_files(void)
915{ 916{
916 static const struct opt_items names[] = {
917 { STR(LANG_OFF) },
918 { STR(LANG_VOICE_NUMBER) },
919 { STR(LANG_VOICE_SPELL) }
920 };
921 return set_option( str(LANG_VOICE_FILE), 917 return set_option( str(LANG_VOICE_FILE),
922 &global_settings.talk_file, INT, names, 3, NULL); 918 &global_settings.talk_file, INT, voice_names, 4, NULL);
923} 919}
924 920
925static bool voice_menu(void) 921static bool voice_menu(void)