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