See pkg1 version on biskey dump failure

This commit is contained in:
Such Meme, Many Skill
2020-04-14 10:25:31 +02:00
parent b8b37e78ba
commit 28fb01b155
2 changed files with 7 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ int dump_biskeys(){
u8 *pkg1 = (u8 *)malloc(0x40000);
sdmmc_storage_set_mmc_partition(&storage, 1);
sdmmc_storage_read(&storage, 0x100000 / NX_EMMC_BLOCKSIZE, 0x40000 / NX_EMMC_BLOCKSIZE, pkg1);
strncpy(pkg1inf.id, pkg1 + 0x10, 14);
const pkg1_id_t *pkg1_id = pkg1_identify(pkg1);
if (!pkg1_id) {
EPRINTF("Unknown pkg1 version.");