From f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 2 Mar 2011 23:43:54 +0000 Subject: RaaA: Fix write locations of plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/configfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins/lib') 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, -- cgit v1.1