hekate: write rsvd cfg to update.bin if different

This commit is contained in:
CTCaer
2025-12-01 13:53:34 +02:00
committed by NaGa
parent 3af536f954
commit 4430833d28
2 changed files with 40 additions and 41 deletions

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);
}