summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-15 21:32:53 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-15 21:32:53 +0000
commit3ced180f5de588ab2e817822d108463c372fd6eb (patch)
treef4b4baa4e40f4a559a2f1abbb96e311282d1f18c /apps
parent81614c428c8edb335d8498051ac5a5e2216ef394 (diff)
downloadrockbox-3ced180f5de588ab2e817822d108463c372fd6eb.tar.gz
rockbox-3ced180f5de588ab2e817822d108463c372fd6eb.tar.bz2
rockbox-3ced180f5de588ab2e817822d108463c372fd6eb.zip
Treat unknown RaaA platforms like SDL for last.FM scrobbler log file. Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29315 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/scrobbler.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/scrobbler.c b/apps/scrobbler.c
index c909737aac..14cb4d30d8 100644
--- a/apps/scrobbler.c
+++ b/apps/scrobbler.c
@@ -83,12 +83,15 @@ static void get_scrobbler_filename(char *path, size_t size)
#endif
/* Get location of USB mass storage area */
-#if APPLICATION && (CONFIG_PLATFORM & PLATFORM_MAEMO)
+#ifdef APPLICATION
+#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
used = snprintf(path, size, "/home/user/MyDocs/%s", base_filename);
-#elif APPLICATION && (CONFIG_PLATFORM & PLATFORM_ANDROID)
+#elif (CONFIG_PLATFORM & PLATFORM_ANDROID)
used = snprintf(path, size, "/sdcard/%s", base_filename);
-#elif APPLICATION && (CONFIG_PLATFORM & PLATFORM_SDL)
+#else /* SDL/unknown RaaA build */
used = snprintf(path, size, "%s/%s", ROCKBOX_DIR, base_filename);
+#endif /* (CONFIG_PLATFORM & PLATFORM_MAEMO) */
+
#else
used = snprintf(path, size, "/%s", base_filename);
#endif