1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-10 12:31:51 +00:00

hos: change exfat check order

This commit is contained in:
CTCaer 2021-10-19 09:11:36 +03:00
parent 964381854e
commit d2684f66a1

View file

@ -748,7 +748,7 @@ static bool _get_fs_exfat_compatible(link_t *info, u32 *hos_revision)
pkg2_get_ids(&kip_ids, &fs_ids_cnt); pkg2_get_ids(&kip_ids, &fs_ids_cnt);
for (u32 fs_idx = 0; fs_idx < fs_ids_cnt; fs_idx++) for (int fs_idx = fs_ids_cnt - 1; fs_idx >= 0; fs_idx--)
{ {
if (!memcmp(sha_buf, kip_ids[fs_idx].hash, 8)) if (!memcmp(sha_buf, kip_ids[fs_idx].hash, 8))
{ {
@ -770,7 +770,7 @@ static bool _get_fs_exfat_compatible(link_t *info, u32 *hos_revision)
break; break;
} }
// Hash didn't match or FAT32 + exFAT. // FAT32 + exFAT or unknown FS version.
return true; return true;
} }