Make MENUITEM_STRINGLIST() menus talk (if ID2P() is used for the string)

Makes the plugin browser talk (FS#7612), as well as the paylist viewer menu and the bookmark menu.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14399 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-08-20 09:11:05 +00:00
parent 057c9ca7ab
commit 94b9804427

View file

@ -250,6 +250,17 @@ static void talk_menu_item(const struct menu_item_ex *menu,
talk_id(id,false);
}
}
else if(((menu->flags&MENU_TYPE_MASK) == MT_RETURN_ID))
{
if ((menu->flags&MENU_DYNAMIC_DESC) == 0)
{
unsigned char *s = (unsigned char *)menu->strings[sel];
/* string list, try to talk it if ID2P was used */
id = P2ID(s);
if (id != -1)
talk_id(id,false);
}
}
}
}
#define MAX_OPTIONS 32