2020-10-14 01:15:21 +01:00
reminder:
list of top level functions designed to alter nca data in order of (possible) usage:
2020-10-22 05:38:14 +01:00
out of dump loop:
2020-10-14 01:15:21 +01:00
* ncaSetDownloadDistributionType (instead of always using it like legacy, offer it as an option)
* ncaRemoveTitlekeyCrypto (can be used with digital titles + game updates in gamecards)
* cnmtGenerateNcaPatch (Meta)
* calls pfsGenerateEntryPatch
* calls ncaGenerateHierarchicalSha256Patch
2020-10-22 05:38:14 +01:00
* programInfoGenerateNcaPatch (Program)
2020-10-21 05:27:48 +01:00
* calls npdmChangeAcidPublicKeyAndNcaSignature
* calls pfsGenerateEntryPatch
* calls ncaGenerateHierarchicalSha256Patch
2020-10-14 01:15:21 +01:00
* nacpGenerateNcaPatch (Control)
* calls romfsGenerateFileEntryPatch
* calls ncaGenerateHierarchicalSha256Patch / ncaGenerateHierarchicalIntegrityPatch
2020-10-21 05:27:48 +01:00
* nacpIsNcaPatchRequired is used to check if a nacp patch was applied
* missing wrapper for romfsWriteFileEntryPatchToMemoryBuffer !!!
* missing functions for nacp mods !!!
2020-10-14 01:15:21 +01:00
* ncaEncryptHeader (doesn't modify anything per se, but it's used to generate new encrypted header data if needed)
2020-10-22 05:38:14 +01:00
inside dump loop:
* ncaIsHeaderDirty (doesn't modify anything per se, but it's used to check if any of the functions above has been used, basically - and by extension, if the functions below need to be used)
* ncaWriteEncryptedHeaderDataToMemoryBuffer (write encrypted nca header data)
* cnmtUpdateContentInfo (used to update content entry info in the raw cnmt copy after dumping each one)
* cnmtWriteNcaPatch (writes cnmt patch)
* calls pfsWriteEntryPatchToMemoryBuffer
* calls ncaWriteHierarchicalSha256PatchToMemoryBuffer
* programInfoWriteNcaPatch (writes ndpm patch)
* calls npdmWriteNcaPatch
* calls pfsWriteEntryPatchToMemoryBuffer
* calls ncaWriteHierarchicalSha256PatchToMemoryBuffer
2020-10-14 01:15:21 +01:00
* pfsWriteEntryPatchToMemoryBuffer
* calls ncaWriteHierarchicalSha256PatchToMemoryBuffer
* romfsWriteFileEntryPatchToMemoryBuffer
* calls ncaWriteHierarchicalSha256PatchToMemoryBuffer / ncaWriteHierarchicalIntegrityPatchToMemoryBuffer
* missing nacp wrapper
minor steps to take into account:
* check if rights_id_available == true and titlekey_retrieved == false (preload handling)
2020-07-07 14:01:17 +01:00
todo:
2020-10-21 05:27:48 +01:00
nca: support for compressed fs sections?
nca: support for sparse sections?
2020-07-07 14:01:17 +01:00
tik: automatically dump tickets to the SD card?
tik: use dumped tickets when the original ones can't be found in the ES savefile?
2020-10-12 21:35:47 +01:00
gamecard: functions to display filelist
2020-07-07 14:01:17 +01:00
2020-10-09 10:58:53 +01:00
pfs0: functions to display filelist
2020-07-07 14:01:17 +01:00
pfs0: full header aligned to 0x20 (nsp)
2020-10-09 10:58:53 +01:00
romfs: functions to display filelist
2020-07-07 14:01:17 +01:00
2020-10-09 10:58:53 +01:00
bktr: functions to display filelist (wrappers for romfs functions tbh)
2020-07-07 14:01:17 +01:00
2020-10-21 05:27:48 +01:00
title: fix titleinfo issue
2020-10-12 21:35:47 +01:00
title: more functions for title lookup? (filters, patches / aoc, etc.)
title: more functions for content lookup? (based on id)
title: parse the update partition from gamecards (if available) to generate ncmcontentinfo data for all update titles
2020-07-07 14:01:17 +01:00
2020-07-22 09:03:28 +01:00