fix yes/no
This commit is contained in:
commit
1cb1ce343b
@ -411,13 +411,21 @@ int confirm_selection(const char* title, const char* confirm)
|
||||
return 1;
|
||||
|
||||
char* confirm_headers[] = { title, " THIS CAN NOT BE UNDONE.", "", NULL };
|
||||
char* items[] = { confirm, //" Yes -- wipe partition", // [0]
|
||||
"No",
|
||||
NULL };
|
||||
|
||||
int chosen_item = get_menu_selection(confirm_headers, items, 0, 0);
|
||||
return chosen_item == 0;
|
||||
}
|
||||
if (0 == stat("/sdcard/clockworkmod/.one_confirm", &info)) {
|
||||
char* items[] = { "No",
|
||||
confirm, //" Yes -- wipe partition", // [1]
|
||||
NULL };
|
||||
int chosen_item = get_menu_selection(confirm_headers, items, 0, 0);
|
||||
return chosen_item == 1;
|
||||
}
|
||||
else {
|
||||
char* items[] = {confirm, //" Yes -- wipe partition", // [7]
|
||||
"No",
|
||||
NULL };
|
||||
int chosen_item = get_menu_selection(confirm_headers, items, 0, 0);
|
||||
return chosen_item == 7;
|
||||
}
|
||||
}
|
||||
|
||||
#define MKE2FS_BIN "/sbin/mke2fs"
|
||||
#define TUNE2FS_BIN "/sbin/tune2fs"
|
||||
|
Loading…
Reference in New Issue
Block a user