From fc493cd999d3e144838a4940e0b9adab7877410c Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 19 Mar 2026 21:10:20 +0200 Subject: [PATCH] hos: pull missed se adjusted return values And fix nogc patches. --- bootloader/hos/hos.c | 2 +- bootloader/hos/pkg2.c | 2 +- bootloader/hos/pkg2_patches.inl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootloader/hos/hos.c b/bootloader/hos/hos.c index 4bd1a5a3..c7344898 100644 --- a/bootloader/hos/hos.c +++ b/bootloader/hos/hos.c @@ -668,7 +668,7 @@ static bool _get_fs_exfat_compatible(link_t *info, u32 *hos_revision) if (strcmp((char *)ki->kip1->name, "FS")) continue; - if (!se_sha_hash_256_oneshot(sha_buf, ki->kip1, ki->size)) + if (se_sha_hash_256_oneshot(sha_buf, ki->kip1, ki->size)) break; pkg2_get_ids(&kip_ids, &fs_ids_cnt); diff --git a/bootloader/hos/pkg2.c b/bootloader/hos/pkg2.c index 1927f2ea..aa3044f0 100644 --- a/bootloader/hos/pkg2.c +++ b/bootloader/hos/pkg2.c @@ -542,7 +542,7 @@ const char *pkg2_patch_kips(link_t *info, char *patch_names) // Check if current KIP not hashed and hash it. if (kip_hash[0] == 0) - if (!se_sha_hash_256_oneshot(kip_hash, ki->kip1, ki->size)) + if (se_sha_hash_256_oneshot(kip_hash, ki->kip1, ki->size)) memset(kip_hash, 0, sizeof(kip_hash)); // Check if kip is the expected version. diff --git a/bootloader/hos/pkg2_patches.inl b/bootloader/hos/pkg2_patches.inl index e4bb04fd..39524c31 100644 --- a/bootloader/hos/pkg2_patches.inl +++ b/bootloader/hos/pkg2_patches.inl @@ -877,7 +877,7 @@ static const kip1_patch_t _fs_nogc_2200[] = { }; static const kip1_patchset_t _fs_patches_2200[] = { - { "nogc", _fs_nogc_2100 }, + { "nogc", _fs_nogc_2200 }, { NULL, NULL } }; @@ -889,7 +889,7 @@ static const kip1_patch_t _fs_nogc_2200_exfat[] = { }; static const kip1_patchset_t _fs_patches_2200_exfat[] = { - { "nogc", _fs_nogc_2100_exfat }, + { "nogc", _fs_nogc_2200_exfat }, { NULL, NULL } };