From 73bcb05de2256ac93ee84661dd40b2111830d235 Mon Sep 17 00:00:00 2001 From: Thatcher Chamberlin Date: Fri, 17 Feb 2023 23:15:44 -0500 Subject: [PATCH] Remove language prefix (EN_, CN_) from converted sound files --- convert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index 32c92e7..ef58349 100755 --- a/convert.sh +++ b/convert.sh @@ -38,7 +38,7 @@ audio_to_txt() { audio_to_cpp() { hash=$(echo $arg1 | md5sum | cut -d" " -f1) filename="out-$hash.sbc" - varname=$(echo $arg1 | rev | cut -c5- | cut -d"/" -f1,2 | rev | tr '[:lower:]' '[:upper:]' | tr "/" _) + varname=$(echo $arg1 | rev | cut -c5- | cut -d"/" -f1 | rev | tr '[:lower:]' '[:upper:]' | tr "/" _) ffmpeg -y \ -v quiet `# verbosity - other options are "quiet", "error", "panic"` \ -i $arg1 `#input file: $arg1` \