-
Notifications
You must be signed in to change notification settings - Fork 109
/
Unpack to MP3.bat
64 lines (50 loc) · 1.6 KB
/
Unpack to MP3.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"Tools\quickbms.exe" "Tools\wavescan.bms" "Game Files" "Tools\Decoding"
FOR %%b IN ("Game Files\*.BNK") DO ("Tools\bnkextr.exe" "%%b" & MOVE *.wav "Tools\Decoding")
FOR %%c IN (Tools\Decoding\*.WAV) DO ("Tools\ww2ogg.exe" "%%c" --pcb Tools\packed_codebooks_aoTuV_603.bin & DEL "%%c")
FOR %%d IN (Tools\Decoding\*.OGG) DO ("Tools\revorb.exe" "%%d" & MOVE "%%d" "MP3")
FOR %%e IN (MP3\*.OGG) DO ("Tools\ffmpeg.exe" -i "%%e" -acodec libmp3lame -q:a 0 -y "MP3\%%~ne.mp3" & DEL "%%e")
@echo off
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo (( '####@@!!$$ ))
echo `#####@@!$$` ))
echo (( '####@!!$:
echo (( ,####@!!$: ))
echo .###@!!$:
echo `##@@!$:
echo `#@!!$
echo !@# `#@!$: @#$
echo #$ `#@!$: !@!
echo '@!$:
echo '`\ '!$: /`'
echo '\ '!: /'
echo '\ : /'
echo -.'-/\\\-.'//.-'/:'\.'-.JrS'.'-=_\\
echo ' -.'-.\\'-.'//.-'.`-.'_\\-.'.-\'.-//
echo Watch out, it's the tornado!
echo.
echo -------------------------------------------------------------
echo Unpack finished! Files should be in the 'MP3' folder
echo -------------------------------------------------------------
echo.
:choice
set /P c=Should I delete BNKs and PCKs from the 'Game Files' folder [Y/N]?
if /I "%c%" EQU "Y" goto :yes
if /I "%c%" EQU "N" goto :hella_no
goto :choice
:yes
FOR %%e IN ("Game Files\*.PCK") DO (DEL "%%e")
FOR %%f IN ("Game Files\*.BNK") DO (DEL "%%f")
echo Files deleted, enjoy your unpacked audio! -/u/Vextil ;)
pause
exit
:hella_no
echo BNKs and PCKs kept, enjoy your unpacked audio! -/u/Vextil ;)
pause
exit
pause