mirror of
https://github.com/CTCaer/hekate
synced 2024-11-16 00:49:27 +00:00
hos: Fix exfat FS check again..
This commit is contained in:
parent
0954eb2b09
commit
19ddff299a
1 changed files with 2 additions and 3 deletions
|
@ -679,7 +679,6 @@ static void _free_launch_components(launch_ctxt_t *ctxt)
|
|||
|
||||
static bool _get_fs_exfat_compatible(link_t *info, bool *fs_is_510)
|
||||
{
|
||||
u32 fs_idx;
|
||||
u32 fs_ids_cnt;
|
||||
u32 sha_buf[32 / sizeof(u32)];
|
||||
kip1_id_t *kip_ids;
|
||||
|
@ -694,7 +693,7 @@ static bool _get_fs_exfat_compatible(link_t *info, bool *fs_is_510)
|
|||
|
||||
pkg2_get_ids(&kip_ids, &fs_ids_cnt);
|
||||
|
||||
for (fs_idx = 0; fs_idx < fs_ids_cnt; fs_idx++)
|
||||
for (u32 fs_idx = 0; fs_idx < fs_ids_cnt; fs_idx++)
|
||||
{
|
||||
if (!memcmp(sha_buf, kip_ids[fs_idx].hash, 8))
|
||||
{
|
||||
|
@ -703,7 +702,7 @@ static bool _get_fs_exfat_compatible(link_t *info, bool *fs_is_510)
|
|||
*fs_is_510 = true;
|
||||
|
||||
// Check if FAT32-only.
|
||||
if (fs_ids_cnt <= fs_idx && !(fs_idx & 1))
|
||||
if (!(fs_idx & 1))
|
||||
return false;
|
||||
|
||||
// FS is FAT32 + exFAT.
|
||||
|
|
Loading…
Reference in a new issue