summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Backe <henrik@backe.eu>2005-10-09 13:37:35 +0000
committerHenrik Backe <henrik@backe.eu>2005-10-09 13:37:35 +0000
commit5a8f6bae9489b6832102874b55b2ea6bc1ac3743 (patch)
tree27f1da82608e010dc4e2706e99e851357c807e39
parent20bc58dc9ad8feb927e0c805f9dbfb5b6a024ccd (diff)
downloadrockbox-5a8f6bae9489b6832102874b55b2ea6bc1ac3743.zip
rockbox-5a8f6bae9489b6832102874b55b2ea6bc1ac3743.tar.gz
rockbox-5a8f6bae9489b6832102874b55b2ea6bc1ac3743.tar.bz2
rockbox-5a8f6bae9489b6832102874b55b2ea6bc1ac3743.tar.xz
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
-rw-r--r--apps/filetypes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 9235e22..5d1c556 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -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;