From 460bf2e85b4e1dd01a3b87d18bc932805642079c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 2 Oct 2025 20:56:18 +0200 Subject: Fix baseband processing with Mav25 (and possibly others too) --- src/idevicerestore.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 809f935..04070a1 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -171,8 +171,6 @@ const uint8_t lpol_file[22] = { }; const uint32_t lpol_file_length = 22; -static int idevicerestore_keep_pers = 0; - static int load_version_data(struct idevicerestore_client_t* client) { if (!client) { @@ -814,7 +812,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) plist_free(response); free(uarp_buf); - if (idevicerestore_keep_pers) { + if (client->flags & FLAG_KEEP_PERS) { write_file("Ace3Binary", ace3bin, ace3bin_size); } @@ -1907,7 +1905,7 @@ int main(int argc, char* argv[]) break; case 'k': - idevicerestore_keep_pers = 1; + client->flags |= FLAG_KEEP_PERS; break; #ifdef HAVE_LIMERA1N @@ -2863,7 +2861,7 @@ int personalize_component(struct idevicerestore_client_t* client, const char *co } free(component_blob); - if (idevicerestore_keep_pers) { + if (client->flags & FLAG_KEEP_PERS) { write_file(component_name, stitched_component, stitched_component_size); } -- cgit v1.1-32-gdbae