Fixed broken "open with" in onplay menu.

A problem with duplicate entries still exists in "open with" which
I think is best solved by removing the scan_plugins() function in filetypes.c,
but I don't want to remove it without a discussing it first.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7603 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Henrik Backe 2005-10-09 13:37:35 +00:00
parent 20bc58dc9a
commit 5a8f6bae94

View file

@ -238,13 +238,17 @@ int filetype_get_attr(const char* name)
int filetype_load_menu(struct menu_item* menu,int max_items)
{
int i;
char *cp;
int cnt=0;
for (i=0; i < cnt_filetypes; i++)
{
if (filetypes[i].plugin)
{
menu[cnt].desc = filetypes[i].plugin;
cp=strrchr(filetypes[i].plugin,'/');
if (cp) cp++;
else cp=filetypes[i].plugin;
menu[cnt].desc = cp;
cnt++;
if (cnt == max_items)
break;