From 0b7a387671a56a1b526b3672cd695b5764597f3e Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 17 Nov 2022 01:25:41 -0500 Subject: open_plugins add name when plugin can't open & check LANG_LAST_INDEX_IN_ARRAY can't open '' was confusing for users so pass the key to open plugin in theory you could have a plugin that defaulted to these lang_ids run but its good enough to tell the user what failed to open IMO lang_id changes mess with open_plugin since it uses them as look-up keys so add checks for LANG_LAST_INDEX_IN_ARRAY to the checksum the plugin now removes entries with an invalid checksum devices with harddrives only append their .dat file so have them skip entries with invalid checksums and only notify user if a valid entry wasn't found (these users can run the open_plugins plugin to remove invalid entries) Change-Id: Icf157675beaccda785643d5a9ed032a7cde30f12 --- apps/root_menu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/root_menu.c') diff --git a/apps/root_menu.c b/apps/root_menu.c index ae3d1b39b0..c70237fdf7 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -730,6 +730,8 @@ static int load_plugin_screen(char *key) char *param = open_plugin_entry.param; if (param[0] == '\0') param = NULL; + if (path[0] == '\0' && key) + path = P2STR((unsigned char *)key); int ret = plugin_load(path, param); -- cgit v1.2.3