mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
Fixed gamecard key area template.
This commit is contained in:
parent
7c4e7a4db0
commit
cd8afd2cd8
2 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
consolePrint("get gamecard key area ok\n");
|
consolePrint("get gamecard key area ok\n");
|
||||||
|
|
||||||
sprintf(path, "sdmc:/card_key_area_%016lX.bin", gc_key_area.initial_data.package_id);
|
sprintf(path, "sdmc:/card_key_area_%016lX.bin", gc_key_area.initial_data.key_source.package_id);
|
||||||
|
|
||||||
FILE *kafd = fopen(path, "wb");
|
FILE *kafd = fopen(path, "wb");
|
||||||
if (!kafd)
|
if (!kafd)
|
||||||
|
|
|
@ -90,6 +90,9 @@ bool tikRetrieveTicketByRightsId(Ticket *dst, const FsRightsId *id, bool use_gam
|
||||||
if (tik_common_block && !memcmp(tik_common_block->rights_id.c, id->c, 0x10)) return true;
|
if (tik_common_block && !memcmp(tik_common_block->rights_id.c, id->c, 0x10)) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clear output ticket. */
|
||||||
|
memset(dst, 0, sizeof(Ticket));
|
||||||
|
|
||||||
bool tik_retrieved = (use_gamecard ? tikRetrieveTicketFromGameCardByRightsId(dst, id) : tikRetrieveTicketFromEsSaveDataByRightsId(dst, id));
|
bool tik_retrieved = (use_gamecard ? tikRetrieveTicketFromGameCardByRightsId(dst, id) : tikRetrieveTicketFromEsSaveDataByRightsId(dst, id));
|
||||||
if (!tik_retrieved)
|
if (!tik_retrieved)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue