mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -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 filetype_load_menu(struct menu_item* menu,int max_items)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
char *cp;
|
||||||
int cnt=0;
|
int cnt=0;
|
||||||
|
|
||||||
for (i=0; i < cnt_filetypes; i++)
|
for (i=0; i < cnt_filetypes; i++)
|
||||||
{
|
{
|
||||||
if (filetypes[i].plugin)
|
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++;
|
cnt++;
|
||||||
if (cnt == max_items)
|
if (cnt == max_items)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue