diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-04-15 15:46:46 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-04-15 15:46:46 +0000 |
commit | f53a8f8cd48b0c679b4bb7da2947e39ff2f7e223 (patch) | |
tree | e5789febd835ffef109fbe95e5259c501dadec19 /apps/gui/gwps-common.c | |
parent | 1c0f41447ade94e89fa0d773792205ab99a73538 (diff) | |
download | rockbox-f53a8f8cd48b0c679b4bb7da2947e39ff2f7e223.tar.gz rockbox-f53a8f8cd48b0c679b4bb7da2947e39ff2f7e223.zip |
Added autoscore tag (%ra) to wps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 5b06dd4b2b..d6576a2b3c 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -1175,6 +1175,13 @@ static char *get_token_value(struct gui_wps *gwps, | |||
1175 | snprintf(buf, buf_size, "%d", id3->rating); | 1175 | snprintf(buf, buf_size, "%d", id3->rating); |
1176 | return buf; | 1176 | return buf; |
1177 | 1177 | ||
1178 | case WPS_TOKEN_DATABASE_AUTOSCORE: | ||
1179 | if (intval) | ||
1180 | *intval = id3->score + 1; | ||
1181 | |||
1182 | snprintf(buf, buf_size, "%d", id3->score); | ||
1183 | return buf; | ||
1184 | |||
1178 | #if (CONFIG_CODEC == SWCODEC) | 1185 | #if (CONFIG_CODEC == SWCODEC) |
1179 | case WPS_TOKEN_CROSSFADE: | 1186 | case WPS_TOKEN_CROSSFADE: |
1180 | if (intval) | 1187 | if (intval) |