emoose / re4-research

Various tools & modding research for Resident Evil 4
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

Update to auto-resample.bat #2

Closed TheJman494 closed 2 years ago

TheJman494 commented 2 years ago

In the current release there is no "" around %%X, meaning it will fail with spaces in the path. Considering the base game has spaces "Resident Evil 4" it wouldn't work out of the box.

Here is a fixed auto-resample.bat:

@echo off
REM make sure ffmpeg.exe is somewhere this .bat can access (eg. next to the .bat, or on your %PATH%)
FOR /r %%X IN (*.xwb) DO (
  re4resample.exe -r 48000 -l "%%X"
)
pause
emoose commented 2 years ago

Oh good catch, will update that now.

E: pushed a new zip with fixed bat file.