Change anywhere where do_menu()'s return value was checked and expected

a bool to appear the same as the old API. Possibly fixes some bugs, but 
doubtful.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12772 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-03-15 04:42:10 +00:00
parent 15c5d26de6
commit b35c1d8d35
4 changed files with 5 additions and 6 deletions

View file

@ -603,7 +603,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
int main_menu(void)
{
return do_menu(NULL, 0);
return do_menu(NULL, 0) == MENU_ATTACHED_USB;
}
/* wrappers for the old menu system to work with the new system */
@ -706,7 +706,7 @@ int menu_show(int m)
MENU_ITEM_COUNT(menus[m].count);
menu.value = m;
menu.menu_get_name_and_icon = &menu_info;
return do_menu(&menu, &menus[m].current_selection);
return do_menu(&menu, &menus[m].current_selection) == MENU_ATTACHED_USB;
}