From 8674a726ff05a4a6c09c6934778c251635f130a8 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Wed, 15 Sep 2010 11:08:23 -0700 Subject: (cherry-pick) support installing any .zip file on the sdcard Replaces the "install sdcard:update zip" menu option with one that displays a menu of zip files (and subdirs) on the sdcard and lets you pick which one to install. Change-Id: Icff541525f2fdfc8939a91af626ecc386ac9dd07 --- ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index e2b2a4491..01c37c079 100644 --- a/ui.c +++ b/ui.c @@ -425,7 +425,7 @@ void ui_print(const char *fmt, ...) pthread_mutex_unlock(&gUpdateMutex); } -void ui_start_menu(char** headers, char** items) { +void ui_start_menu(char** headers, char** items, int initial_selection) { int i; pthread_mutex_lock(&gUpdateMutex); if (text_rows > 0 && text_cols > 0) { @@ -442,7 +442,7 @@ void ui_start_menu(char** headers, char** items) { } menu_items = i - menu_top; show_menu = 1; - menu_sel = 0; + menu_sel = initial_selection; update_screen_locked(); } pthread_mutex_unlock(&gUpdateMutex); -- cgit v1.2.3