summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-13 13:57:14 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-13 13:57:14 +0000
commitae9b319ec555fd9b33c5c37b68b5578442e9de9f (patch)
tree7f22f669554cb2913e13e51da0d7e2d9b7d52c0e /apps/filetypes.c
parent10fafb3d7c07c4418342858c1d246e65e3c08e2c (diff)
downloadrockbox-ae9b319ec555fd9b33c5c37b68b5578442e9de9f.zip
rockbox-ae9b319ec555fd9b33c5c37b68b5578442e9de9f.tar.gz
rockbox-ae9b319ec555fd9b33c5c37b68b5578442e9de9f.tar.bz2
rockbox-ae9b319ec555fd9b33c5c37b68b5578442e9de9f.tar.xz
Open with... now reloads the dir if the viewer returns PLUGIN_USB_CONNECTED
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index b9f5dd1..b7004f5 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -239,11 +239,11 @@ int filetype_load_menu(struct menu_item* menu,int max_items)
}
/* start a plugin with an argument (called from onplay.c) */
-void filetype_load_plugin(char* plugin, char* file)
+int filetype_load_plugin(char* plugin, char* file)
{
snprintf(plugin_name,sizeof(plugin_name),"%s/%s.rock",
VIEWERS_DIR,plugin);
- plugin_load(plugin_name,file);
+ return plugin_load(plugin_name,file);
}
/* get index to filetypes[] from the file attribute */