mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-08 11:51:48 +00:00
90e0f057bc
* Updated NCA structs (including NcaSparseInfo). * Changed the way NCA header + NCA FS header decryption is handled. * Changed the way the NCA encrypted key area is handled. * Unified hierarchical patch generation functions. * Updated PFS, RomFS and BKTR functions accordingly to reflect NCA handling changes. * Logfile path is now relative. * Gamecard initial data lookup code now uses the initial data hash from the gamecard header (a tad bit slower, but way more failproof).
34 lines
No EOL
1 KiB
Text
34 lines
No EOL
1 KiB
Text
todo:
|
|
|
|
hfs0: filelist generation methods
|
|
|
|
tik: make sure the common crypto cert is available when fakesigning a ticket
|
|
tik: automatically dump tickets to the SD card?
|
|
tik: use dumped tickets when the original ones can't be found in the ES savefile?
|
|
|
|
nca: function to write encrypted nca headers / nca fs headers (don't forget nca0 please)
|
|
nca: function to write hashdata patches
|
|
|
|
pfs0: filelist generation methods
|
|
pfs0: full header aligned to 0x20 (nsp)
|
|
pfs0: function to write patches
|
|
|
|
romfs: filelist generation methods
|
|
romfs: function to write patches
|
|
|
|
bktr: filelist generation methods (wrappers for romfs functions)
|
|
|
|
|
|
|
|
|
|
|
|
char content_info_path[FS_MAX_PATH] = {0};
|
|
sprintf(content_info_path, "sdmc:/%016lX.bin", xml_program_info.title_id);
|
|
|
|
FILE *content_info = fopen(content_info_path, "wb");
|
|
if (content_info)
|
|
{
|
|
fwrite(titleContentInfos, 1, titleContentInfoCnt * sizeof(NcmContentInfo), content_info);
|
|
fclose(content_info);
|
|
}
|
|
|