hekate: write rsvd cfg to update.bin if different

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:53:33 +01:00
1 parent 3af536f954
commit 4430833d28
2 files changed
+40 -41

No files matched your search

+4 -3
View File
@@ -31,7 +31,7 @@
//#define DPRINTF(...) gfx_printf(__VA_ARGS__)
#define DPRINTF(...)
extern bool is_ipl_updated(void *buf, const char *path, bool force);
extern bool is_ipl_updated(void *buf, u32 size, const char *path, bool force);
#define PKG3_KIP_SKIP_MAX 16
@@ -86,9 +86,10 @@ typedef struct _pkg3_content_t
static void _pkg3_update_r2p()
{
u8 *r2p_payload = emusd_file_read("atmosphere/reboot_payload.bin", NULL);
u32 size = 0;
u8 *r2p_payload = emusd_file_read("atmosphere/reboot_payload.bin", &size);
is_ipl_updated(r2p_payload, "emusd:atmosphere/reboot_payload.bin", h_cfg.updater2p ? true : false);
is_ipl_updated(r2p_payload, size, "emusd:atmosphere/reboot_payload.bin", h_cfg.updater2p ? true : false);
free(r2p_payload);
}