Prepare usage of psxcdgen

This commit is contained in:
Jaby 2022-07-10 15:11:21 +02:00
parent 9b4041a393
commit 0d0e25c958
2 changed files with 27 additions and 3 deletions

View File

@ -19,10 +19,10 @@
{
"label": "finalize",
"type": "shell",
"command": "FinalizeCD.bat ${input:finalize} JabyEngine Library\\Code",
"command": "Finalize.bat ${input:finalize_tool} ${input:finalize} JabyEngine Library\\Code",
"options": {
"env": {
"PATH": "../../Tools/;../../Tools/mkpsxiso;${env:PATH}"
"PATH": "./Tools/;../../Tools/;../../Tools/mkpsxiso;${env:PATH}"
}
},
"group": {
@ -86,7 +86,13 @@
"options": ["all", "calculate", "skip"],
"default": "all"
},
{
"id": "finalize_tool",
"type": "pickString",
"description": "Tool to use for Finalizing the CD",
"options": ["mkpsxiso.exe"],
"default": "mkpsxiso.exe"
},
{
"id": "target",
"type": "pickString",

18
Tools/Finalize.bat Normal file
View File

@ -0,0 +1,18 @@
@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
if exist "%4\iso\%3LBAFile.json" LBAHacker.exe %4\iso\%3LBAFile.json
if %2 == calculate goto end
%1 -y %4\iso\%3ISODesc.xml *> nul
echo "Wrote ISO image"
:end