1
0
Fork 0
forked from len0rd/rockbox

talk: only show the "failed reading .voice" splash if talking is enabled

Change-Id: I4046294e39c621ddeeceeb6f21eab05a1e687cb5
This commit is contained in:
Solomon Peachy 2020-07-14 23:00:37 -04:00 committed by Franklin Wei
parent 4a1988d31b
commit 0e97132314

View file

@ -939,7 +939,8 @@ void talk_init(void)
{ {
if (!load_voicefile_index(filehandle)) if (!load_voicefile_index(filehandle))
{ {
splashf(HZ * 2, str(LANG_READ_FAILED), ".voice"); if (global_settings.talk_menu)
splashf(HZ, str(LANG_READ_FAILED), ".voice");
goto out; goto out;
} }
/* Now determine the maximum buffer size needed for the voicefile. /* Now determine the maximum buffer size needed for the voicefile.