Skip to content

Commit

Permalink
Drag Drop improvements to batch files
Browse files Browse the repository at this point in the history
Allow Drag and Drop of multiple custom samples from anywhere on disk all at once in the Sample Creation Tools .bat file
Allow Drag and Drop of a ROM from anywhere on disk in the ZBank ripper
  • Loading branch information
stephenk02 committed Aug 5, 2023
1 parent cf234ba commit c1f3a35
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 3 additions & 1 deletion OoTR Zbank Ripper/Drop Rom Here.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.\bankripper.py %1 --I 50 --o %1
cd /D "%~dp0"

.\bankripper.py "%~1" --I 50 --o "%~nx1"
pause
24 changes: 23 additions & 1 deletion SampleCreationTools/DropYourWavHere.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
.\z64audio.exe --i %1 --I 50 --o %1.bin
@echo off
cd /D "%~dp0"

:Loop

z64audio.exe --i %1 --I 50 --o %~n1.bin

REM Rename output config.toml to unique name matching wav input file
ren config.toml "%~n1.toml"
ren "%~n1.book.bin" "%~n1.book"
ren "%~n1.loopbook.bin" "%~n1.loopbook"

REM // Move all files to output subfolder
if not exist output\ md output

move "%~n1.toml" output
move "%~n1.vadpcm.bin" output


REM // Handle multiple arguments
SHIFT
IF "%~1" NEQ "" (GOTO Loop)

pause

0 comments on commit c1f3a35

Please sign in to comment.