Rockbox mail archiveSubject: File extension in WPS
File extension in WPS
From: Tomas <tomas_at_salfischberger.nl>
Date: Thu, 09 Jun 2005 22:16:42 +0200
On IRC: <elinenbe> good idea from the misticriver forum: Has there been
any consideration about letting the .wps files display the file type
(Ogg vs. MP3)?
I can't commit it right now (and I haven't tested it yet) because my wps
code is full of testing stuff...
But add around line 444 (in current CVS version) just after the "case
'n': /* File Name */" the following:
case 'e': /* file extension */
if (get_dir(buf, buf_size, id3->path, 0))
/* get the extension */
char* sep = strrchr(buf, '.');
if (NULL != sep)
return sep + 1;
And I think you have a %fe for file extension in wps markup code.
Maybe someone can test it?
Received on 2005-06-09
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew