1
0
Fork 0
forked from len0rd/rockbox

voice: Make sure we always copy INVALID_VOICE and LANG_NAME clips

If they were in the pool, they'd not be copied out.

Change-Id: If3d7d72656eba18e2df7f7f1307f967494cb4ab6
This commit is contained in:
Solomon Peachy 2024-06-21 16:57:48 -04:00
parent eb8f6e578e
commit bb12746972

View file

@ -511,16 +511,17 @@ sub generateclips {
if (defined($ENV{'POOL'})) {
copy($enc, $pool_file);
}
# Special cases
if ($id eq "VOICE_INVALID_VOICE_FILE") {
copy ($enc, "InvalidVoice_$language.talk");
}
if ($id eq "VOICE_LANG_NAME") {
copy ($enc, "$language.lng.talk");
}
unlink($wav);
}
# Special cases
if ($id eq "VOICE_INVALID_VOICE_FILE") {
copy ($enc, "InvalidVoice_$language.talk");
}
if ($id eq "VOICE_LANG_NAME") {
copy ($enc, "$language.lng.talk");
}
$voice = "";
$id = "";
}