diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-26 23:35:00 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-28 16:54:33 -0400 |
commit | 78283bda64ee09502029cd2eee459fef1bd31385 (patch) | |
tree | 18ca528eec4e8610c659fd89c0d5de23ef9005d4 /apps/tree.c | |
parent | 70b96193e7950391e7fcbdabad6daebe8b87e4f5 (diff) | |
download | rockbox-78283bda64ee09502029cd2eee459fef1bd31385.tar.gz rockbox-78283bda64ee09502029cd2eee459fef1bd31385.zip |
talk: Voice the volume name when browsing and when voicing full paths
Change-Id: I56660e168edd135a09cd5c021504a58ec9d40093
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 8c41abbdcf..71a7ee3f62 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1252,6 +1252,12 @@ static void say_filetype(int attr) | |||
1252 | 1252 | ||
1253 | static int ft_play_dirname(char* name) | 1253 | static int ft_play_dirname(char* name) |
1254 | { | 1254 | { |
1255 | #ifdef HAVE_MULTIVOLUME | ||
1256 | int vol = path_get_volume_id(name); | ||
1257 | if (talk_volume_id(vol)) | ||
1258 | return 1; | ||
1259 | #endif | ||
1260 | |||
1255 | return talk_file(tc.currdir, name, dir_thumbnail_name, NULL, | 1261 | return talk_file(tc.currdir, name, dir_thumbnail_name, NULL, |
1256 | global_settings.talk_filetype ? | 1262 | global_settings.talk_filetype ? |
1257 | TALK_IDARRAY(VOICE_DIR) : NULL, | 1263 | TALK_IDARRAY(VOICE_DIR) : NULL, |