From e2245c2a9ebf26956b2ace34b91de3a21e0565df Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 21 Jan 2023 23:05:38 +0800 Subject: [PATCH] Add explanation for how to extract Patch NCAs. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9d3a198..d83a29a 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,16 @@ nstool -x /path/to/a/file.bin ./extract_dir/different_name.bin some_file.bin * NSP * XCI +## NCA Patches +Nintendo distributes game patches/updates in the style of a diff to keep file sizes down. This means extracting game patches requires the base version of the game to be able to process patch data. Typically this is only done for the Program NCA. + +If `basegame_v0.nca` is the base Program NCA, and `gamepatch_v13219.nca` is the patch Program NCA, simply specify the base NCA using the base NCA option `--basenca` when processing the patch NCA. + +``` +nstool --basenca ./basegame_v0.nca -x ./patchdata gamepatch_v13219.nca +``` +In the above example the patch NCA is being extracted to `./patchdata` + ## Encrypted Files Some Nintendo Switch files are partially or completely encrypted. These require the user to supply the encryption keys to NSTool so that it can process them.