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/open_plugin.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/open_plugin.h') diff --git a/apps/open_plugin.h b/apps/open_plugin.h index d16be2052c..62e3662849 100644 --- a/apps/open_plugin.h +++ b/apps/open_plugin.h @@ -40,8 +40,9 @@ enum { OPEN_PLUGIN_LANG_INVALID = (-1), OPEN_PLUGIN_LANG_IGNORE = (-2), OPEN_PLUGIN_LANG_IGNOREALL = (-3), - OPEN_PLUGIN_NOT_FOUND = (-1), - OPEN_PLUGIN_NEEDS_FLUSHED = (-2), + OPEN_PLUGIN_INVALID_ENTRY = (-1), + OPEN_PLUGIN_NOT_FOUND = (-2), + OPEN_PLUGIN_NEEDS_FLUSHED = (-3), }; struct open_plugin_entry_t -- cgit v1.2.3