1
0
Fork 0
forked from len0rd/rockbox

Added basic handling of \r\n (ignores it) to the Custom WPS

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2043 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Justin Heiner 2002-08-28 18:03:20 +00:00
parent a9b2208723
commit 7d808a83e4

View file

@ -321,6 +321,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
case 'd': /* ID3 Album/Disc */
snprintf(tmpbuf, sizeof(tmpbuf), "%s", id3->album);
break;
case '\r':
case '\n':
/* As of yet, do nothing with these */
break;
}
break;
case 'f': /* File Information */
@ -363,6 +367,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
snprintf(tmpbuf, sizeof(tmpbuf), "%d",
id3->filesize / 1024);
break;
case '\r':
case '\n':
/* As of yet, do nothing with these */
break;
}
break;
case 'p': /* Playlist/Song Information */
@ -386,6 +394,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
id3->elapsed / 60000,
id3->elapsed % 60000 / 1000);
break;
case '\r':
case '\n':
/* As of yet, do nothing with these */
break;
}
break;
case '%': /* Displays % */
@ -425,6 +437,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
break;
}
break;
case '\r':
case '\n':
/* As of yet, do nothing with these */
break;
default:
switch(con_flag)
{