Only skip stuck hashes if the 20 retries are consecutive.

This commit is contained in:
skawo 2023-03-21 17:28:12 +01:00
parent 9a1b91555e
commit 79c26f1b25
3 changed files with 11 additions and 1 deletions

9
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"files.associations": {
"initializer_list": "c",
"type_traits": "c",
"vector": "c",
"xstring": "c",
"xutility": "c"
}
}

View File

@ -1328,7 +1328,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
ShaCalculator(file_path, true);
GetDirContents(current_dir, current_path);
refresh_call_every = 10000;
refresh_call_every = 10000;
return 0;
}
else if (user_select == calccmac) { // -> calculate CMAC

View File

@ -193,6 +193,7 @@ u32 CheckFixNcchHash(u8* expected, FIL* file, u32 size_data, u32 offset_ncch, Nc
{
DrawString(MAIN_SCREEN, "HASH MISMATCH. Attempting refresh. ", pos_x, pos_y + 114, COLOR_STD_FONT, COLOR_STD_BG);
hash_stuck = false;
hash_stuck_times = 0;
}
fvx_lseek(file, offset_back);