jabyengine/Tools/Finalize.bat

19 lines
538 B
Batchfile

@echo off
if not exist "%4\iso\Info" mkdir %4\iso\Info
if not exist "iso" mkdir iso
if %2 == skip goto end
if not exist "%4/bin/GlobalLBATable.bin" echo Planschi > "%4%/bin/GlobalLBATable.bin"
echo "Calculate LBAs"
%1 -y -lba %4\iso\Info\%3.lba -lbahead %4\iso\Info\%3.h -noisogen %4\iso\%3ISODesc.xml *> nul
if exist "%4\iso\%3LBAFile.json" LBAHacker.exe %4\iso\%3LBAFile.json
if %2 == calculate goto end
rem this used to have "*> nul"
%1 -y %4\iso\%3ISODesc.xml
echo "Wrote ISO image"
:end