From 3ced180f5de588ab2e817822d108463c372fd6eb Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 15 Feb 2011 21:32:53 +0000 Subject: [PATCH] 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 --- apps/scrobbler.c | 9 ++++++--- 1 file 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