forked from len0rd/rockbox
[Feature] Open plugins now recognizes known filetypes and can run them
now you can run your lua files without having to add the viewer to the shortcut or if you want a bmp file to be displayed when you start the device that can be done as well Change-Id: Ia56b566789623a2ca78d9e4583086db6e2cd689b
This commit is contained in:
parent
30482bd908
commit
ee840709d3
8 changed files with 49 additions and 20 deletions
|
@ -1033,7 +1033,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
long greysize; /* helper */
|
||||
#endif
|
||||
|
||||
if(!parameter) return PLUGIN_ERROR;
|
||||
if(!parameter) {rb->splash(HZ*2, "No file"); return PLUGIN_ERROR; }
|
||||
|
||||
rb->strcpy(np_file, parameter);
|
||||
if (get_image_type(np_file, false) == IMAGE_UNKNOWN)
|
||||
|
@ -1051,8 +1051,6 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
|
||||
get_pic_list();
|
||||
|
||||
if(!entries) return PLUGIN_ERROR;
|
||||
|
||||
#ifdef USEGSLIB
|
||||
if (!grey_init(buf, buf_size, GREY_ON_COP,
|
||||
LCD_WIDTH, LCD_HEIGHT, &greysize))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue