Skip to content

Commit

Permalink
Fix NSCB.bat
Browse files Browse the repository at this point in the history
Fix NSCB.bat
  • Loading branch information
julesontheroad authored Jun 21, 2019
2 parents ee705bd + 5fc898f commit 66b7126
Show file tree
Hide file tree
Showing 30 changed files with 137 additions and 3 deletions.
1 change: 1 addition & 0 deletions py/English CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Luca Fraga's github: https://github.com/LucaFraga
---------------
0. Changelog
---------------
v0.86e- Fixes NSCB.bat that got messed up when merging beta and master branches
v0.86d- Adds support for keygeneration 9\masterkey8
- Added support for keygeneration 9\masterkey8 in info functions, keys verification,
nsp\xci verifier and keygeneration change function
Expand Down
2 changes: 1 addition & 1 deletion py/NSCB.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set "prog_dir=%~dp0"
set "bat_name=%~n0"
set "ofile_name=%bat_name%_options.cmd"
Title NSC_Builder v0.86.c -- Profile: %ofile_name% -- by JulesOnTheRoad
Title NSC_Builder v0.86.e -- Profile: %ofile_name% -- by JulesOnTheRoad
set "list_folder=%prog_dir%lists"
::-----------------------------------------------------
::EDIT THIS VARIABLE TO LINK OTHER OPTION FILE
Expand Down
2 changes: 1 addition & 1 deletion py/NSCB_KR.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set "prog_dir=%~dp0"
set "bat_name=%~n0"
set "ofile_name=%bat_name%_options.cmd"
Title NSC_Builder v0.86. -- Profile: %ofile_name% -- by JulesOnTheRoad
Title NSC_Builder v0.86.e -- Profile: %ofile_name% -- by JulesOnTheRoad
set "list_folder=%prog_dir%lists"
::-----------------------------------------------------
::이 옵션을 다른 옵션 파일과 연결되도록 편집하십시오.
Expand Down
133 changes: 133 additions & 0 deletions py/zconfig/NSCB_KR_options.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
::--------------------------------------------------------------
::SET CUSTOM COLOR FOR THE BATCH FILES
::--------------------------------------------------------------
color 1F
::--------------------------------------------------------------
::OPTION 1: FOLDERS
::--------------------------------------------------------------
::work folder
set "w_folder=NSCB_temp"
::output folder
set "fold_output=NSCB_output"
::zip folder
set "zip_fold=NSCB_zips"
::--------------------------------------------------------------
::OPTION 2: PROGRAM ROUTES
::--------------------------------------------------------------
set "nut=ztools\squirrel.py"
set "xci_lib=ztools\XCI.bat"
set "nsp_lib=ztools\NSP.bat"
set "zip=ztools\squirrel.py"
set "listmanager=ztools\squirrel.py"
set "batconfig=ztools\NSCB_config.bat"
set "batdepend=ztools\install_dependencies.bat"
set "infobat=ztools\info.bat"
::--------------------------------------------------------------
::OPTION 3: SQUIRREL OPTIONS
::--------------------------------------------------------------
::python command
set "pycommand=py -3"
::Buffer for the copy functions.
::Change the number for the number of bytes that works best for you
::32768=32kB ; 65536=64kB
set "buffer=buffer=-b 65536"
::Copy function with or without deltas
::--C_clean -> Copy and remove titlerights. Don't skips deltas
::--C_clean_ND-> Copy and remove titlerights skipping deltas
set "nf_cleaner=--C_clean_ND"
set "skdelta=-ND true"
::than the required FW to decypher the crypto
::true -> Patch required system version in the meta nca
::false-> Don't patch required system version in the meta nca
set "patchRSV=-pv false"
set "capRSV=--RSVcap 268435656"
::--------------------------------------------------------------
::OPTION 4: IMPORTANT FILES
::--------------------------------------------------------------
::
set "uinput=ztools\uinput"
::Route for keys.txt
set "dec_keys=ztools\keys.txt"
::--------------------------------------------------------------
::OPTION 5: REPACK OPTIONS
::--------------------------------------------------------------
::Repack option for auto-mode
::nsp->repack as nsp-
::xci->repack as xci-
::both->repack as both
set "vrepack=both"
::Type of repack for folders
::indiv->repack multiple input files as multiple output file. INDIVIDUAL MODE
::multi->repack multiple input files as single output file. MULTI-MODE
set "fi_rep=multi"
::--------------------------------------------------------------
::OPTION 6: MANUAL MODE INTRO
::--------------------------------------------------------------
::Repack mode that is shown first in manual mode
::indiv->individual packing of files
::multi->multi-pack mode
::split->splitter mode
::update->update mode
::choose->prompt to choose the mode to enter
set "manual_intro=choose"
::--------------------------------------------------------------
::OPTION 7: Zip files
::--------------------------------------------------------------
::ZIP FILES FOR UPCOMING RESTORE MODE
::true->zip the needed files
::false->don't zip the files
set "zip_restore=false"

::--------------------------------------------------------------
::OPTION 8: PATCH IF KEYGENERATION IS BIGGER THAN
::--------------------------------------------------------------
:: CHANGE ENCRYPTION TO THE SET KEYGENERATION IN AUTO-MODE
::
:: Don't change encryption -> vkey = false
:: "1.0.0" -> vkey = 0
:: "2.0.0 - 2.3.0" -> vkey = 1
:: "3.0.0" -> vkey = 2
:: "3.0.1 - 3.0.2" -> vkey = 3
:: "4.0.0 - 4.1.0" -> vkey = 4
:: "5.0.0 - 5.1.0" -> vkey = 5
:: "6.0.0-4 - 6.1.0" -> vkey = 6
:: "6.2.0 - ?" -> vkey = 7

set "vkey=-kp false"

::--------------------------------------------------------------
::OPTION 10: AUTO-EXIT
::--------------------------------------------------------------
:: If set at true the program will auto-exit in manual mode
set "va_exit=false"

::--------------------------------------------------------------
::OPTION 11: SKIP RSV AND KEYGENERATION CHANGE PROPMT
::--------------------------------------------------------------
:: Skip RequiredSystemVersion and keygeneration prompts while
:: in manual mode
set "skipRSVprompt=false"

::--------------------------------------------------------------
::OPTION 12: SD FORMAT
::--------------------------------------------------------------
:: Choose to pack xci or for exfat cards or fat32 cards
::fatype can be fat32 or exfat
::fexport pack split nsp as files (sxos rommenu) or as folder (other installers)
set "fatype=-fat exfat"
set "fexport=-fx files"

::--------------------------------------------------------------
::OPTION 13: END FOLDER ORGANIZATION
::--------------------------------------------------------------
::Organization in the output folder.
::inline -> All files go to root folder
::subfolder -> Files go to folder named by game
set "oforg=inline"

::--------------------------------------------------------------
::OPTION 14: NEW OR LEGACY
::--------------------------------------------------------------
::SETS THE PROGRAM STARTUP FOR NEW MODES OR LEGACY MODES
::value is new or legacy
set "NSBMODE=new"
Binary file modified py/ztools/Fs/__pycache__/BaseFs.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/File.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Hfs0.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Ivfc.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Nacp.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Nca.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Nsp.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Pfs0.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Rom.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Ticket.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Type.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/Xci.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/pHfs0.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/Fs/__pycache__/pXci.cpython-37.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion py/ztools/LEGACY.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:TOP_INIT
CD /d "%prog_dir%"
set "bat_name=%~n0"
Title NSC_Builder v0.85. -- Profile: %ofile_name% -- by JulesOnTheRoad
Title NSC_Builder v0.86.e -- Profile: %ofile_name% -- by JulesOnTheRoad

::Check if user is dragging a folder or a file
if "%~1"=="" goto manual
Expand Down
Binary file modified py/ztools/lib/__pycache__/Config.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Hex.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Keys.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Nsps.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Print.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Status.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Title.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/Titles.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/aes128.cpython-37.pyc
Binary file not shown.
Binary file modified py/ztools/lib/__pycache__/sq_tools.cpython-37.pyc
Binary file not shown.

0 comments on commit 66b7126

Please sign in to comment.