Al-Azif

example.bat

Apr 11th, 2021
1,262
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. SetLocal EnableDelayedExpansion
  3.  
  4. set PYTHON_PATH=C:\python27-x64\python.exe
  5. set PKG_TOOL_PATH=C:\Program Files\LibOrbisPkg\PkgTool.exe
  6.  
  7. set SDKVERSION=00.000.000
  8. set SYSVERSION=00.000.000
  9.  
  10. REM TODO: Generate GP4 file
  11.  
  12. for /f "tokens=* delims=" %%f in ('dir "%1\*" /s /b') do (
  13.   for %%i IN ("%%f") do (
  14.     set filedrive=%%~di
  15.     set filepath=%%~pi
  16.     set filename=%%~ni
  17.     set fileextension=%%~xi
  18.   )
  19.  
  20.   if "!fileextension!" == ".prx" (
  21.     "%PYTHON_PATH%" backport_elf.py --sdk-version %SDKVERSION% --verbose "%%f" "%%f.backport"
  22.     "%PYTHON_PATH%" make_fself.py --paid 0x3800000000000011 "%%f.backport" "!filedrive!!filepath!!filename!.fself"
  23.    REM TODO: Edit GP4 file
  24.   )
  25.  
  26.   if "!fileextension!" == ".sprx" (
  27.     "%PYTHON_PATH%" backport_elf.py --sdk-version %SDKVERSION% --verbose "%%f" "%%f.backport"
  28.     "%PYTHON_PATH%" make_fself.py --paid 0x3800000000000011 "%%f.backport" "!filedrive!!filepath!!filename!.fself"
  29.    REM TODO: Edit GP4 file
  30.   )
  31.  
  32.   if /i "!filename:~0,5!" == "eboot" (
  33.     if "!fileextension!" == ".bin" (
  34.       "%PYTHON_PATH%" backport_elf.py --sdk-version %SDKVERSION% --verbose "%%f" "%%f.backport"
  35.       "%PYTHON_PATH%" make_fself.py --paid 0x3800000000000011 "%%f.backport" "!filedrive!!filepath!!filename!.fself"
  36.      REM TODO: Edit GP4 file
  37.     )
  38.     if "!fileextension!" == ".elf" (
  39.       "%PYTHON_PATH%" backport_elf.py --sdk-version %SDKVERSION% --verbose "%%f" "%%f.backport"
  40.       "%PYTHON_PATH%" make_fself.py --paid 0x3800000000000011 "%%f.backport" "!filedrive!!filepath!!filename!.fself"
  41.      REM TODO: Edit GP4 file
  42.     )
  43.   )
  44.  
  45.   if "!filename!" == "param" (
  46.     if "!fileextension!" == ".sfo" (
  47.       "%PYTHON_PATH%" backport_sfo.py --sdk-version %SDKVERSION% --system-version %SYSVERSION% --verbose "%%f" "%%f.backport"
  48.      REM TODO: Edit GP4 file
  49.     )
  50.   )
  51. )
  52.  
  53. REM "%PKG_TOOL_PATH%" pkg_build pkg.gp4 .
  54.  
  55. pause
  56.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×