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: Thu, 09 Jun 2005 22:16:42 +0200

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 2005-06-09

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy