From ee60eb78ff7b7682395d5a799bf19ede1ff36ad3 Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Sun, 1 Sep 2019 14:22:25 +0000 Subject: Pushed stock tools and folder structure --- tools/3/do.bat | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 tools/3/do.bat (limited to 'tools/3/do.bat') diff --git a/tools/3/do.bat b/tools/3/do.bat new file mode 100644 index 0000000..4421468 --- /dev/null +++ b/tools/3/do.bat @@ -0,0 +1,84 @@ +@echo off + +set game= +set ptch= + +for /d %%v in (NP???????) do set game=%%v +for /d %%v in (BL???????) do set ptch=%%v +for /d %%v in (BC???????) do set ptch=%%v + +if "%game%" equ "" goto failure +if "%ptch%" equ "" goto failure + +echo Found folders +echo Game: %game% +echo Patch: %ptch% + +echo. + +echo Creating GAME pkg... + +echo contentid = 000000-%game:~0,9%_00-1GAME00000000000>package.conf +echo klicensee = 0x00000000000000000000000000000000>>package.conf +echo drmtype = Free>>package.conf +echo contenttype = GameExec>>package.conf +echo packagetype = HDDGamePatch>>package.conf +echo installdirectory = %game%>>package.conf +echo packageversion = 01.00>>package.conf + +makepkg1.exe -n package.conf %game%>nul + +if exist %game%\LICDIR xcopy "%game%\LICDIR\*.*" "%game%-LIC\LICDIR\*.*">nul +if exist %game%\INSDIR xcopy "%game%\INSDIR\*.*" "%game%-LIC\INSDIR\*.*">nul + +echo Creating PATCH pkg... + +echo contentid = 000000-%game:~0,9%_00-2PATCH0000000000>package.conf +echo klicensee = 0x00000000000000000000000000000000>>package.conf +echo drmtype = Free>>package.conf +echo contenttype = GameData>>package.conf +echo packagetype = DiscGamePatch>>package.conf +echo installdirectory = %ptch%>>package.conf +echo packageversion = 01.00>>package.conf + +makepkg1.exe -n package.conf %ptch%>nul + +if exist %game%-LIC ( + echo Creating LIC pkg... + + echo contentid = 000000-%game:~0,9%_00-3LIC000000000000>package.conf + echo klicensee = 0x00000000000000000000000000000000>>package.conf + echo drmtype = Free>>package.conf + echo contenttype = GameExec>>package.conf + echo packagetype = HDDGamePatch>>package.conf + echo installdirectory = %game%>>package.conf + echo packageversion = 01.00>>package.conf + + makepkg2.exe -n package.conf %game%-LIC>nul + + rd /S /Q "%game%-LIC">nul +) + +del package.conf>nul + +goto success + +:success + +echo. + +echo Successfully created pkgs. + +goto end + +:failure + +echo Some folders are missing. + +goto end + +:end + +echo Press any key to exit. + +pause>nul -- cgit v1.2.3