forked from len0rd/rockbox
Fixed associate problem with file extensions (.info files matched .nfo extension)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
acf14e0569
commit
b2473d58ab
14 changed files with 50 additions and 49 deletions
|
|
@ -209,17 +209,18 @@ bool filetype_supported(int attr)
|
|||
}
|
||||
|
||||
/* get the "dynamic" attribute for an extension */
|
||||
int filetype_get_attr(const char* name)
|
||||
int filetype_get_attr(char* name)
|
||||
{
|
||||
int i;
|
||||
char *cp;
|
||||
|
||||
for (i=0; i < cnt_exttypes; i++)
|
||||
{
|
||||
if (exttypes[i].extension)
|
||||
{
|
||||
if (!strcasecmp(&name[strlen(name)-
|
||||
strlen(exttypes[i].extension)],
|
||||
exttypes[i].extension))
|
||||
cp=strrchr(name,'.');
|
||||
if (cp) cp++;
|
||||
if ((!strcasecmp(cp,exttypes[i].extension)) && (cp))
|
||||
{
|
||||
return ((((unsigned long)exttypes[i].type -
|
||||
(unsigned long)&filetypes[0]) /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue