@echo off

IF NOT EXIST "override\ar0011.tis" goto tis_add

goto audio_check

:tis_add

"eeconv\tisunpack.exe" -s -f -o "override\ar0011.tis" "eeconv\areas\ar0011.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar0309.tis" "eeconv\areas\ar0309.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar0403.tis" "eeconv\areas\ar0403.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar0512.tis" "eeconv\areas\ar0512.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar0700.tis" "eeconv\areas\ar0700.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar1304.tis" "eeconv\areas\ar1304.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar1901.tis" "eeconv\areas\ar1901.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar2100.tis" "eeconv\areas\ar2100.tiz"
"eeconv\tisunpack.exe" -s -f -o "override\ar2401.tis" "eeconv\areas\ar2401.tiz"

goto audio_check

:audio_check

IF NOT EXIST "override\lh0403a.wav" goto audio_add

goto end

:audio_add

"eeconv\oggdec.exe" "eeconv\audio\AM0011.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM0028.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM0309.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM0500.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM1304.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM1304N.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM1901.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM2200.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM2207.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM2806.ogg"
"eeconv\oggdec.exe" "eeconv\audio\AM2806A.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lh0403a.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lh2100b.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lh2401.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhBAR4n.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhICE1.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhICE2.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhLRD3.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMIS12a.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMIS12b.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMIS12c.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMNK3.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMNK4.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMNK5.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMS10a.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhMS10b.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhSCRN1.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhSCRN2.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhSHOP1.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhTER1.ogg"
"eeconv\oggdec.exe" "eeconv\audio\lhTER2.ogg"
"eeconv\oggdec.exe" "eeconv\audio\SPIN724.ogg"

move "eeconv\audio\*.wav" "override" > nul

:end