From 2a72ba40f047fcd9fd9f005ca409871a75a9cfbd Mon Sep 17 00:00:00 2001 From: garwedgess Date: Fri, 3 May 2013 00:17:16 +0100 Subject: [PATCH] Removed advanced restore of /boot /wimax as Xperia 2011 devices don't have /boot partition --- extendedcommands.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extendedcommands.c b/extendedcommands.c index aee42a5..61e8aed 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -1123,30 +1123,30 @@ void show_nandroid_advanced_restore_menu(const char* path) int chosen_item = get_menu_selection(headers, list, 0, 0); switch (chosen_item) { - case 0: + /* case 0: if (confirm_selection(confirm_restore, "Yes - Restore /boot")) + nandroid_restore(file, 1, 0, 0, 0, 0, 0); + break;*/ + case 0: + if (confirm_selection(confirm_restore, "Yes - Restore /system")) nandroid_restore(file, 1, 0, 0, 0, 0, 0); break; case 1: - if (confirm_selection(confirm_restore, "Yes - Restore /system")) + if (confirm_selection(confirm_restore, "Yes - Restore /data")) nandroid_restore(file, 0, 1, 0, 0, 0, 0); break; case 2: - if (confirm_selection(confirm_restore, "Yes - Restore /data")) + if (confirm_selection(confirm_restore, "Yes - Restore /cache")) nandroid_restore(file, 0, 0, 1, 0, 0, 0); break; case 3: - if (confirm_selection(confirm_restore, "Yes - Restore /cache")) + if (confirm_selection(confirm_restore, "Yes - Restore /sd-ext")) nandroid_restore(file, 0, 0, 0, 1, 0, 0); break; - case 4: - if (confirm_selection(confirm_restore, "Yes - Restore /sd-ext")) - nandroid_restore(file, 0, 0, 0, 0, 1, 0); - break; - case 5: + /*case 4: if (confirm_selection(confirm_restore, "Yes - Restore /wimax")) nandroid_restore(file, 0, 0, 0, 0, 0, 1); - break; + break;*/ } }