summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-10-13 23:45:00 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-10-16 10:18:44 -0400
commit15ee7400609b0b8837982a2dd388531bc19c06f6 (patch)
treea6a91ef67057533e61ed718e06863a55a88543c7 /apps/root_menu.c
parent6fb942d8ff843444cbade57278de6e6687337fd6 (diff)
downloadrockbox-15ee7400609b0b8837982a2dd388531bc19c06f6.tar.gz
rockbox-15ee7400609b0b8837982a2dd388531bc19c06f6.zip
Open Plugins search by langids
On language change Stored plugins may fail to run due to hashing on lang dependent string allows searching by langid when the supplied key is LANG_PTR Fixes error on hash flush where previous entry was not restored Adds routine to update file in-place (for ATA targets) Other targets make a temp file to copy entries breaking changes: ROCKBOXDIR is no longer hashed since /.rockbox directory may soon be able to be changed packed attribute added to op data structure -- oops Change-Id: Ieead26609559b9c5bdadc6a95227cb2bfbb9f71c
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 2eab43f504..a67bb41cde 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -848,7 +848,8 @@ void root_menu(void)
848 } 848 }
849 } 849 }
850 850
851 bool flush = (open_plugin_get_entry(key, &open_plugin_entry) == -2); 851 int opret = open_plugin_get_entry(key, &open_plugin_entry);
852 bool flush = (opret == OPEN_PLUGIN_NEEDS_FLUSHED);
852 char *path = open_plugin_entry.path; 853 char *path = open_plugin_entry.path;
853 char *param = open_plugin_entry.param; 854 char *param = open_plugin_entry.param;
854 if (param[0] == '\0') 855 if (param[0] == '\0')