diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-05-06 16:39:57 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-05-06 17:27:25 -0400 |
commit | ee840709d3d93376f9b5da6c34572424079304b8 (patch) | |
tree | 2357bb53651524d1cc5dd386fb32ddba15e7be0d /apps/plugins/imageviewer | |
parent | 30482bd9087444c434ee4c4cc1756ca9a402f5ad (diff) | |
download | rockbox-ee840709d3d93376f9b5da6c34572424079304b8.tar.gz rockbox-ee840709d3d93376f9b5da6c34572424079304b8.zip |
[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
Diffstat (limited to 'apps/plugins/imageviewer')
-rw-r--r-- | apps/plugins/imageviewer/imageviewer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c index d1a512c4fd..9d5aea7f15 100644 --- a/apps/plugins/imageviewer/imageviewer.c +++ b/apps/plugins/imageviewer/imageviewer.c | |||
@@ -1033,7 +1033,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
1033 | long greysize; /* helper */ | 1033 | long greysize; /* helper */ |
1034 | #endif | 1034 | #endif |
1035 | 1035 | ||
1036 | if(!parameter) return PLUGIN_ERROR; | 1036 | if(!parameter) {rb->splash(HZ*2, "No file"); return PLUGIN_ERROR; } |
1037 | 1037 | ||
1038 | rb->strcpy(np_file, parameter); | 1038 | rb->strcpy(np_file, parameter); |
1039 | if (get_image_type(np_file, false) == IMAGE_UNKNOWN) | 1039 | if (get_image_type(np_file, false) == IMAGE_UNKNOWN) |
@@ -1051,8 +1051,6 @@ enum plugin_status plugin_start(const void* parameter) | |||
1051 | 1051 | ||
1052 | get_pic_list(); | 1052 | get_pic_list(); |
1053 | 1053 | ||
1054 | if(!entries) return PLUGIN_ERROR; | ||
1055 | |||
1056 | #ifdef USEGSLIB | 1054 | #ifdef USEGSLIB |
1057 | if (!grey_init(buf, buf_size, GREY_ON_COP, | 1055 | if (!grey_init(buf, buf_size, GREY_ON_COP, |
1058 | LCD_WIDTH, LCD_HEIGHT, &greysize)) | 1056 | LCD_WIDTH, LCD_HEIGHT, &greysize)) |