Who approves this stuff... use get_volume_for_path('/sdcard') and check for null...
Revert "Hide "mount USB storage" option from mount menu when the board has a virtual sdcard"
This reverts commit e510810c71
.
This commit is contained in:
parent
e510810c71
commit
4c8e2482a6
@ -40,7 +40,7 @@ LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
|
||||
RECOVERY_API_VERSION := 2
|
||||
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||
|
||||
BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT BOARD_USES_VIRTUAL_SDCARD
|
||||
BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT
|
||||
|
||||
$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
|
||||
$(if $($(board_define)), \
|
||||
|
@ -669,7 +669,6 @@ void show_partition_menu()
|
||||
static char* confirm_format = "Confirm format?";
|
||||
static char* confirm = "Yes - Format";
|
||||
char confirm_string[255];
|
||||
int ptr = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
@ -691,11 +690,8 @@ void show_partition_menu()
|
||||
options[mountable_volumes+i] = e->txt;
|
||||
}
|
||||
|
||||
#ifndef BOARD_USES_VIRTUAL_SDCARD
|
||||
options[mountable_volumes+formatable_volumes] = "mount USB storage";
|
||||
ptr = 1;
|
||||
#endif
|
||||
options[mountable_volumes+formatable_volumes + ptr] = NULL;
|
||||
options[mountable_volumes+formatable_volumes + 1] = NULL;
|
||||
|
||||
int chosen_item = get_menu_selection(headers, &options, 0, 0);
|
||||
if (chosen_item == GO_BACK)
|
||||
|
Loading…
Reference in New Issue
Block a user