Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: File extension in WPS

File extension in WPS

From: Tomas <tomas_at_salfischberger.nl>
Date: 2005-06-09

Hi,

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;
                        }

                    }
                    return NULL;

And I think you have a %fe for file extension in wps markup code.

Maybe someone can test it?

Tomas

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on Thu Jun 9 22:20:42 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa