summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-10-05 08:02:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-10-05 08:02:10 +0000
commitaf48260399151e575bc40c7a648e3a2e0037e04e (patch)
treed160abd09f39d08fcfe8c4b3d88fd7a6a91f5728 /apps/filetypes.c
parent8dd2ff50c68d313af7fd559af6d8ee2ff2fe6d42 (diff)
downloadrockbox-af48260399151e575bc40c7a648e3a2e0037e04e.tar.gz
rockbox-af48260399151e575bc40c7a648e3a2e0037e04e.zip
Modified the viewers.config syntax slightly. The name field should now include
path of the plugin/viewer on target, but exclude the exension. Now the Sudoku plugin acts as a normal plugin and a viewer at the same time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7582 a1c6a512-1295-4272-9138-f99709370657
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 {