mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 20:06:43 +00:00
Hotfix for 10.0.0
This commit is contained in:
parent
82a4d03985
commit
b8b37e78ba
5 changed files with 21 additions and 10 deletions
|
@ -42,6 +42,7 @@ static const pkg1_id_t _pkg1_ids[] = {
|
|||
{ "20190531152432", 8, {0x29c50, 0x6a73, 0, 8, 12, HASH_ORDER_700_9xx, 0x5563, 0x1d437} }, //8.1.0
|
||||
{ "20190809135709", 9, {0x2ec10, 0x5573, 0, 1, 12, HASH_ORDER_700_9xx, 0x6495, 0x1d807} }, //9.0.0 - 9.0.1
|
||||
{ "20191021113848", 10,{0x2ec10, 0x5573, 0, 1, 12, HASH_ORDER_700_9xx, 0x6495, 0x1d807} }, //9.1.0
|
||||
{ "20200303104606", 11,{0x2ec10, 0x5573, 0, 1, 12, HASH_ORDER_700_9xx, 0x6495, 0x1d807} }, //10.0.0, May or may not be accurate. I just need to feed tsec anyway so this doesn't matter
|
||||
{ NULL } //End.
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -154,14 +154,14 @@ void te_main(){
|
|||
|
||||
if (dump_biskeys() == -1){
|
||||
gfx_errDisplay("dump_biskey", ERR_BISKEY_DUMP_FAILED, 0);
|
||||
mainmenu_main[1].property |= ISHIDE;
|
||||
//mainmenu_main[1].property |= ISHIDE;
|
||||
}
|
||||
|
||||
if (emummc_load_cfg()){
|
||||
mainmenu_main[2].property |= ISHIDE;
|
||||
}
|
||||
else
|
||||
dumpEmuGpt();
|
||||
|
||||
dumpGpt();
|
||||
|
||||
disconnect_mmc();
|
||||
|
||||
|
|
Loading…
Reference in a new issue