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:
parent
eb8f6e578e
commit
bb12746972
1 changed files with 9 additions and 8 deletions
|
|
@ -511,16 +511,17 @@ sub generateclips {
|
||||||
if (defined($ENV{'POOL'})) {
|
if (defined($ENV{'POOL'})) {
|
||||||
copy($enc, $pool_file);
|
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);
|
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 = "";
|
$voice = "";
|
||||||
$id = "";
|
$id = "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue