actually no issues on ams 0.20.0; add 1728.0 and 1795.2 MHz for Hynix DRAM; nx2elf recompiled for release (previously debug ver requires -d.dll runtime); idk windows is transitioning to windows terminal(powershell), so batch script is made for less confusion

This commit is contained in:
KazushiM
2021-08-29 17:58:53 +08:00
parent a4b4473809
commit 8e119aaa95
9 changed files with 45 additions and 23 deletions

38
PatchTools/Patcher.bat Normal file
View File

@@ -0,0 +1,38 @@
@echo off
if not exist .\prod.keys (
echo prod.key NOT FOUND!
pause
EXIT
)
if not exist .\pcv-backup (
echo pcv-backup NOT FOUND!
pause
EXIT
)
if not exist .\pcv-bspatch (
echo pcv-bspatch NOT FOUND!
pause
EXIT
)
if exist .\pcv-module (
echo You have generated patched pcv module, do you want to delete and regenerate it?
pause
del .\pcv-module
)
rd /S /Q .\temp\
rd /S /Q .\hacpack_backup\
del .\*.nca
mkdir .\temp
mkdir .\temp\pcv_exefs
hactool -k prod.keys --disablekeywarns -t -nca .\pcv-backup --exefsdir .\temp
nx2elf .\temp\main
bspatch .\temp\main.elf .\temp\main-mod.elf .\pcv-bspatch
elf2nso .\temp\main-mod.elf .\temp\pcv_exefs\main
copy .\temp\main.npdm .\temp\pcv_exefs\
hacpack -k prod.keys -o .\ --type nca --ncatype program --titleid 010000000000001A --exefsdir .\temp\pcv_exefs\
ren *.nca pcv-module
echo Press any key to remove temp files
pause
rd /S /Q .\temp\
rd /S /Q .\hacpack_backup\
exit