forked from len0rd/rockbox
Accept FS#8236: make voice should overwrite existing .voice files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15835 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a0224590d4
commit
1dff29a9d6
1 changed files with 1 additions and 4 deletions
|
|
@ -398,10 +398,7 @@ sub createvoice {
|
||||||
our $verbose;
|
our $verbose;
|
||||||
my ($language, $target_id) = @_;
|
my ($language, $target_id) = @_;
|
||||||
my $outfile = "";
|
my $outfile = "";
|
||||||
my $i = 0;
|
$outfile = sprintf("%s.voice", $language);
|
||||||
do {
|
|
||||||
$outfile = sprintf("%s%s.voice", $language, ($i++ == 0 ? '' : '-'.$i));
|
|
||||||
} while (-f $outfile);
|
|
||||||
printf("Saving voice file to %s\n", $outfile) if $verbose;
|
printf("Saving voice file to %s\n", $outfile) if $verbose;
|
||||||
my $cmd = "voicefont 'voicefontids' $target_id ./ $outfile";
|
my $cmd = "voicefont 'voicefontids' $target_id ./ $outfile";
|
||||||
print("> $cmd\n") if $verbose;
|
print("> $cmd\n") if $verbose;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue