show key error upon mounting mmc and fix small files in hex view
This commit is contained in:
@@ -171,7 +171,7 @@ ErrCode_t DumpOrWriteEmmcPart(const char *path, const char *part, u8 write, u8 f
|
||||
if (!system_part)
|
||||
return newErrCode(TE_ERR_PARTITION_NOT_FOUND);
|
||||
|
||||
if (isSystemPartCrypt(system_part)){
|
||||
if (isSystemPartCrypt(system_part) && TConf.keysDumped){
|
||||
nx_emmc_bis_init(system_part);
|
||||
crypt = true;
|
||||
lba_start = 0;
|
||||
|
||||
@@ -108,18 +108,16 @@ void GptMenu(u8 MMCType){
|
||||
}
|
||||
else if (entries[res].icon == 127){
|
||||
unmountMMCPart();
|
||||
ErrCode_t err = mountMMCPart(entries[res].name);
|
||||
ErrCode_t err = (TConf.keysDumped) ? mountMMCPart(entries[res].name) : newErrCode(TE_ERR_KEYDUMP_FAIL);
|
||||
if (err.err){
|
||||
DrawError(err);
|
||||
}
|
||||
else {
|
||||
if (TConf.keysDumped){
|
||||
if (TConf.curExplorerLoc > LOC_SD)
|
||||
ResetCopyParams();
|
||||
if (TConf.curExplorerLoc > LOC_SD)
|
||||
ResetCopyParams();
|
||||
|
||||
TConf.curExplorerLoc = LOC_EMMC;
|
||||
FileExplorer("bis:/");
|
||||
}
|
||||
TConf.curExplorerLoc = LOC_EMMC;
|
||||
FileExplorer("bis:/");
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user