Implement bis dumping

This commit is contained in:
Such Meme, Many Skill
2020-03-14 15:03:08 +01:00
parent 5cb50722cf
commit 144dc3a3f5
7 changed files with 144 additions and 15 deletions

View File

@@ -61,11 +61,8 @@ pkg1_info returnpkg1info(){
return pkg1inf;
}
int mount_mmc(const char *partition, const int biskeynumb){
f_unmount("emmc:");
se_aes_key_set(8, bis_key[biskeynumb] + 0x00, 0x10);
se_aes_key_set(9, bis_key[biskeynumb] + 0x10, 0x10);
int connect_part(const char *partition){
sdmmc_storage_set_mmc_partition(&storage, 0);
system_part = nx_emmc_part_find(&gpt, partition);
if (!system_part) {
@@ -73,6 +70,18 @@ int mount_mmc(const char *partition, const int biskeynumb){
return -1;
}
return 0;
}
int mount_mmc(const char *partition, const int biskeynumb){
f_unmount("emmc:");
se_aes_key_set(8, bis_key[biskeynumb] + 0x00, 0x10);
se_aes_key_set(9, bis_key[biskeynumb] + 0x10, 0x10);
if (connect_part(partition))
return -1;
if (f_mount(&emmc, "emmc:", 1)) {
gfx_printf("Mount failed of %s.", partition);
return -1;