summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 721d5326ea..9235e22315 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -188,7 +188,7 @@ char* filetype_get_plugin(const struct entry* file)
188 return NULL; 188 return NULL;
189 189
190 snprintf(plugin_name, sizeof(plugin_name), 190 snprintf(plugin_name, sizeof(plugin_name),
191 VIEWERS_DIR "/%s.rock",filetypes[ix].plugin); 191 "%s/%s.rock", ROCKBOX_DIR, filetypes[ix].plugin);
192 192
193 return plugin_name; 193 return plugin_name;
194} 194}
@@ -453,9 +453,13 @@ static int add_plugin(char *plugin)
453 if (!plugin) 453 if (!plugin)
454 return 0; 454 return 0;
455 455
456#if 0
457 /* starting now, Oct 2005, the plugins are given without extension in the
458 viewers.config file */
456 cp=strrchr(plugin, '.'); 459 cp=strrchr(plugin, '.');
457 if (cp) 460 if (cp)
458 *cp='\0'; 461 *cp='\0';
462#endif
459 463
460 for (i=first_soft_filetype; i < cnt_filetypes; i++) 464 for (i=first_soft_filetype; i < cnt_filetypes; i++)
461 { 465 {