Mercurial > audlegacy
changeset 148:fe9cb5132263 trunk
[svn] More of the same.
author | nenolod |
---|---|
date | Thu, 10 Nov 2005 18:07:22 -0800 |
parents | 6fe2bfbe6fc2 |
children | 908ef215f340 |
files | Plugins/Input/console/Audacious_Driver.cpp |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp Thu Nov 10 18:05:56 2005 -0800 +++ b/Plugins/Input/console/Audacious_Driver.cpp Thu Nov 10 18:07:22 2005 -0800 @@ -60,7 +60,7 @@ return 0; } -static gchar *get_title(gchar *filename) +static gchar *get_title_spc(gchar *filename) { gchar *title; Emu_Std_Reader reader; @@ -93,6 +93,21 @@ return title; } +static gchar *get_title(gchar *filename) +{ + gchar *ext; + + ext = strrchr(filename, '.'); + + if (ext) + { + if (!strcasecmp(ext, ".spc")) + return get_title_spc(filename); + } + + return NULL; +} + static void get_song_info(char *filename, char **title, int *length) { (*title) = get_title(filename);