diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-08-19 00:39:23 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-08-19 02:06:16 -0400 |
commit | 8ee035b6c884142f936b03b7419d14e9102515d9 (patch) | |
tree | 09c65904fe37dac707d2a8c4e4b1e29ee5d5060e /apps/open_plugin.c | |
parent | 889bcc0f763fcb31b9ac66a23199ce31746664ed (diff) | |
download | rockbox-8ee035b6c884142f936b03b7419d14e9102515d9.tar.gz rockbox-8ee035b6c884142f936b03b7419d14e9102515d9.zip |
Open_plugin add ability to import opx shortcuts, bug fix
shortcuts can be exported as .opx; now they can import as well
if parameter is a valid file..
plugins with parameters are now hashed on the parameter path
fix bug with empty parameters not overwriting last valid parameter
Change-Id: I149519811f07cb4ba22b7113449e2f89f77f1eee
Diffstat (limited to 'apps/open_plugin.c')
-rw-r--r-- | apps/open_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c index 5bca829708..61778e1ce7 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c | |||
@@ -64,6 +64,8 @@ uint32_t open_plugin_add_path(const char *key, const char *plugin, const char *p | |||
64 | 64 | ||
65 | if(parameter) | 65 | if(parameter) |
66 | strlcpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ); | 66 | strlcpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ); |
67 | else | ||
68 | open_plugin_entry.param[0] = '\0'; | ||
67 | 69 | ||
68 | write(fd, &open_plugin_entry, op_entry_sz); | 70 | write(fd, &open_plugin_entry, op_entry_sz); |
69 | } | 71 | } |