Advertisement
Guest User

Untitled

a guest
May 19th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. @ECHO %off
  2. REM
  3.  
  4.  
  5. REM Location of extracted audio to change
  6. SET DIR=white_scrc/sound/pack/8000/
  7.  
  8. REM Check that filelist_scrc.win32.bin exists
  9. IF NOT EXIST filelist_scrc.win32.bin (
  10. ECHO Missing file: filelist_scrc.win32.bin
  11. PAUSE
  12. EXIT
  13. )
  14.  
  15. REM Check that white_scrc.win32.bin exists
  16. IF NOT EXIST white_scrc.win32.bin (
  17. ECHO Missing file: white_scrc.win32.bin
  18. PAUSE
  19. EXIT
  20. )
  21.  
  22. REM Ask user for the gain they would like to set
  23. SET /p GAIN="Enter Gain: "
  24.  
  25. REM Decrypt
  26. ffxiiicrypt -d filelist_scrc.win32.bin 2
  27. PAUSE
  28.  
  29. REM Extract
  30. ff13tool -x -ff132 filelist_scrc.win32.bin white_scrc.win32.bin
  31. PAUSE
  32.  
  33. REM Convert Audio
  34. FOR %%f IN (%DIR%/*) DO (
  35. ECHO converting %%f
  36. FOR /F "tokens=*" %%g IN ('xxd.exe -p -l 4 -s 168 %DIR%/%%f') DO (
  37. FOR /F "tokens=*" %%v IN ('convert.exe %%g %GAIN%') DO (
  38. ECHO %%v | xxd.exe -r - %DIR%/%%f
  39. )
  40. )
  41. )
  42.  
  43. PAUSE
  44.  
  45. REM Repack
  46. ff13tool -c -ff132 filelist_scrc.win32.bin white_scrc
  47. PAUSE
  48.  
  49. REM Encrypt
  50. ffxiiicrypt -e filelist_scrc.win32.bin 2
  51. PAUSE
  52.  
  53. REM Wipe the temp dir that was extracted
  54. ECHO Removing temp files
  55. DEL /s /q white_scrc
  56. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement