summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index fe70873c56..fb3ed24cfb 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -125,28 +125,9 @@ static bool bookmark_menu(void)
125 125
126static bool list_viewers(void) 126static bool list_viewers(void)
127{ 127{
128 struct menu_item menu[16]; 128 int ret = filetype_list_viewers(selected_file);
129 int m, i, result;
130 int ret = 0;
131
132 i=filetype_load_menu(menu,sizeof(menu)/sizeof(*menu));
133 if (i)
134 {
135 m = menu_init( menu, i, NULL, NULL, NULL, NULL );
136 result = menu_show(m);
137 menu_exit(m);
138 if (result >= 0)
139 ret = filetype_load_plugin((char *)menu[result].desc,selected_file);
140 }
141 else
142 {
143 /* FIX: translation! */
144 gui_syncsplash(HZ*2, (unsigned char *)"No viewers found");
145 }
146
147 if (ret == PLUGIN_USB_CONNECTED) 129 if (ret == PLUGIN_USB_CONNECTED)
148 onplay_result = ONPLAY_RELOAD_DIR; 130 onplay_result = ONPLAY_RELOAD_DIR;
149
150 return false; 131 return false;
151} 132}
152 133