summaryrefslogtreecommitdiff
path: root/apps/open_plugin.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-17 01:25:41 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-17 01:43:16 -0500
commit0b7a387671a56a1b526b3672cd695b5764597f3e (patch)
tree07c9c337f002a647c5e6c7eaf0a6b3c5245097cb /apps/open_plugin.h
parent4c3937591c510a22c724d18dae9367bb1b786698 (diff)
downloadrockbox-0b7a387671a56a1b526b3672cd695b5764597f3e.tar.gz
rockbox-0b7a387671a56a1b526b3672cd695b5764597f3e.zip
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
Diffstat (limited to 'apps/open_plugin.h')
-rw-r--r--apps/open_plugin.h5
1 files changed, 3 insertions, 2 deletions
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 {
40 OPEN_PLUGIN_LANG_INVALID = (-1), 40 OPEN_PLUGIN_LANG_INVALID = (-1),
41 OPEN_PLUGIN_LANG_IGNORE = (-2), 41 OPEN_PLUGIN_LANG_IGNORE = (-2),
42 OPEN_PLUGIN_LANG_IGNOREALL = (-3), 42 OPEN_PLUGIN_LANG_IGNOREALL = (-3),
43 OPEN_PLUGIN_NOT_FOUND = (-1), 43 OPEN_PLUGIN_INVALID_ENTRY = (-1),
44 OPEN_PLUGIN_NEEDS_FLUSHED = (-2), 44 OPEN_PLUGIN_NOT_FOUND = (-2),
45 OPEN_PLUGIN_NEEDS_FLUSHED = (-3),
45}; 46};
46 47
47struct open_plugin_entry_t 48struct open_plugin_entry_t