diff options
author | 2025-10-02 20:56:18 +0200 | |
---|---|---|
committer | 2025-10-02 20:56:18 +0200 | |
commit | 460bf2e85b4e1dd01a3b87d18bc932805642079c (patch) | |
tree | ba680682fa225ac11a0e785701ae12f2be610b6e /src/idevicerestore.c | |
parent | fb46a9db2d8d11dc98d2bf6d61754e4c8f185460 (diff) | |
download | idevicerestore-460bf2e85b4e1dd01a3b87d18bc932805642079c.tar.gz idevicerestore-460bf2e85b4e1dd01a3b87d18bc932805642079c.tar.bz2 |
Fix baseband processing with Mav25 (and possibly others too)
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); } |