Hotfix for 10.0.0
This commit is contained in:
@@ -215,8 +215,8 @@ int dump_biskeys(){
|
||||
memcpy(bis_key[3], bis_key[2], 0x20);
|
||||
}
|
||||
|
||||
sdmmc_storage_set_mmc_partition(&storage, 0);
|
||||
nx_emmc_gpt_parse(&sys_gpt, &storage);
|
||||
//sdmmc_storage_set_mmc_partition(&storage, 0);
|
||||
//nx_emmc_gpt_parse(&sys_gpt, &storage);
|
||||
|
||||
se_aes_key_set(8, bis_key[2] + 0x00, 0x10);
|
||||
se_aes_key_set(9, bis_key[2] + 0x10, 0x10);
|
||||
@@ -226,10 +226,16 @@ int dump_biskeys(){
|
||||
return 0;
|
||||
}
|
||||
|
||||
void dumpEmuGpt(){
|
||||
connect_mmc(EMUMMC);
|
||||
emummc_storage_set_mmc_partition(&storage, 0);
|
||||
nx_emmc_gpt_parse(&emu_gpt, &storage);
|
||||
void dumpGpt(){
|
||||
connect_mmc(SYSMMC);
|
||||
sdmmc_storage_set_mmc_partition(&storage, 0);
|
||||
nx_emmc_gpt_parse(&sys_gpt, &storage);
|
||||
|
||||
if (emu_cfg.enabled){
|
||||
connect_mmc(EMUMMC);
|
||||
emummc_storage_set_mmc_partition(&storage, 0);
|
||||
nx_emmc_gpt_parse(&emu_gpt, &storage);
|
||||
}
|
||||
}
|
||||
|
||||
link_t *selectGpt(short mmcType){
|
||||
|
||||
@@ -16,7 +16,7 @@ int mount_mmc(const char *partition, const int biskeynumb);
|
||||
void connect_mmc(short mmctype);
|
||||
void disconnect_mmc();
|
||||
int connect_part(const char *partition);
|
||||
void dumpEmuGpt();
|
||||
void dumpGpt();
|
||||
link_t *selectGpt(short mmcType);
|
||||
int checkGptRules(char *in);
|
||||
|
||||
|
||||
@@ -90,6 +90,10 @@ int handleEntries(short mmcType, menu_entry part){
|
||||
int res = 0;
|
||||
|
||||
if (part.property & ISDIR){
|
||||
if (returnpkg1info().ver < 0){
|
||||
gfx_errDisplay("emmcMakeMenu", ERR_BISKEY_DUMP_FAILED, 0);
|
||||
return -1;
|
||||
}
|
||||
if (!mount_mmc(part.name, part.storage))
|
||||
fileexplorer("emmc:/", 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user