summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-03-02 23:43:54 +0000
committerThomas Jarosch <tomj@simonv.com>2011-03-02 23:43:54 +0000
commitf9f89cf5cb42a6540995bbb0c277e1f2e6b222b2 (patch)
tree1cede1c4f11f529e00bf48036778801160dc6e56 /apps/plugins/lib
parenta25153be6b0af205aa0c82dd2f3cba41221df2e5 (diff)
downloadrockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.zip
rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.gz
rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.bz2
rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.xz
RaaA: Fix write locations of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/configfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/lib/configfile.c b/apps/plugins/lib/configfile.c
index 0fb01c6..ab1e21a 100644
--- a/apps/plugins/lib/configfile.c
+++ b/apps/plugins/lib/configfile.c
@@ -23,12 +23,15 @@
static void get_cfg_filename(char* buf, int buf_len, const char* filename)
{
+#ifdef APPLICATION
+ rb->snprintf(buf, buf_len, PLUGIN_DATA_DIR "/%s", filename);
+#else
char *s;
rb->strcpy(buf, rb->plugin_get_current_filename());
s = rb->strrchr(buf, '/');
if (!s) /* should never happen */
{
- rb->snprintf(buf, buf_len, PLUGIN_DIR "/%s", filename);
+ rb->snprintf(buf, buf_len, PLUGIN_DATA_DIR "/%s", filename);
}
else
{
@@ -36,6 +39,7 @@ static void get_cfg_filename(char* buf, int buf_len, const char* filename)
*s = '\0';
rb->strcat(s, filename);
}
+#endif
}
int configfile_save(const char *filename, struct configdata *cfg,