From 17c80a650f963be7842ef15d83e93286a0129f7a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 26 Oct 2021 14:48:10 +0200 Subject: Add command line option to continue despite certain errors (e.g. baseband update failure) --- src/restore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/restore.c') diff --git a/src/restore.c b/src/restore.c index 47c93dd..d26f398 100644 --- a/src/restore.c +++ b/src/restore.c @@ -3692,6 +3692,10 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit // this is the restore process loop, it reads each message in from // restored and passes that data on to it's specific handler while (!(client->flags & FLAG_QUIT)) { + if (client->flags & FLAG_IGNORE_ERRORS) { + error("WARNING: Attempting to continue after critical error, restore might fail...\n"); + err = 0; + } // finally, if any of these message handlers returned -1 then we encountered // an unrecoverable error, so we need to bail. if (err < 0) { -- cgit v1.1-32-gdbae