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

@ -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); DrawString(MAIN_SCREEN, "HASH MISMATCH. Attempting refresh. ", pos_x, pos_y + 114, COLOR_STD_FONT, COLOR_STD_BG);
hash_stuck = false; hash_stuck = false;
hash_stuck_times = 0;
} }
fvx_lseek(file, offset_back); fvx_lseek(file, offset_back);