mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
20bc58dc9a
commit
5a8f6bae94
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue