mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 11:56:42 +00:00
show key error upon mounting mmc and fix small files in hex view
This commit is contained in:
parent
bb4361c991
commit
a1ae52e8ac
3 changed files with 8 additions and 10 deletions
|
@ -130,7 +130,7 @@ void HexView(char *path, FSEntry_t entry){
|
||||||
hidRead();
|
hidRead();
|
||||||
|
|
||||||
gfx_clearscreen();
|
gfx_clearscreen();
|
||||||
print = malloc(2048);
|
print = calloc(2048, 1);
|
||||||
|
|
||||||
if ((res = f_open(&in, filePath, FA_READ | FA_OPEN_EXISTING))){
|
if ((res = f_open(&in, filePath, FA_READ | FA_OPEN_EXISTING))){
|
||||||
DrawError(newErrCode(res));
|
DrawError(newErrCode(res));
|
||||||
|
@ -146,7 +146,7 @@ void HexView(char *path, FSEntry_t entry){
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx_con_setpos(0, 31);
|
gfx_con_setpos(0, 31);
|
||||||
gfx_hexdump(offset * 32, print, size);
|
gfx_hexdump(offset * 32, print, ((size + 31) / 32) * 32);
|
||||||
|
|
||||||
input = hidRead();
|
input = hidRead();
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ ErrCode_t DumpOrWriteEmmcPart(const char *path, const char *part, u8 write, u8 f
|
||||||
if (!system_part)
|
if (!system_part)
|
||||||
return newErrCode(TE_ERR_PARTITION_NOT_FOUND);
|
return newErrCode(TE_ERR_PARTITION_NOT_FOUND);
|
||||||
|
|
||||||
if (isSystemPartCrypt(system_part)){
|
if (isSystemPartCrypt(system_part) && TConf.keysDumped){
|
||||||
nx_emmc_bis_init(system_part);
|
nx_emmc_bis_init(system_part);
|
||||||
crypt = true;
|
crypt = true;
|
||||||
lba_start = 0;
|
lba_start = 0;
|
||||||
|
|
|
@ -108,18 +108,16 @@ void GptMenu(u8 MMCType){
|
||||||
}
|
}
|
||||||
else if (entries[res].icon == 127){
|
else if (entries[res].icon == 127){
|
||||||
unmountMMCPart();
|
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){
|
if (err.err){
|
||||||
DrawError(err);
|
DrawError(err);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (TConf.keysDumped){
|
if (TConf.curExplorerLoc > LOC_SD)
|
||||||
if (TConf.curExplorerLoc > LOC_SD)
|
ResetCopyParams();
|
||||||
ResetCopyParams();
|
|
||||||
|
|
||||||
TConf.curExplorerLoc = LOC_EMMC;
|
TConf.curExplorerLoc = LOC_EMMC;
|
||||||
FileExplorer("bis:/");
|
FileExplorer("bis:/");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue