@@ -39,9 +39,11 @@ static Result Menu_GetMusicList(void) {
3939 qsort (entries , entryCount , sizeof (FsDirectoryEntry ), Utils_Alphasort );
4040
4141 for (u32 i = 0 ; i < entryCount ; i ++ ) {
42- if ((!strncasecmp (FS_GetFileExt (entries [i ].name ), "flac" , 4 )) || (!strncasecmp (FS_GetFileExt (entries [i ].name ), "mp3" , 3 ))
43- || (!strncasecmp (FS_GetFileExt (entries [i ].name ), "ogg" , 3 )) || (!strncasecmp (FS_GetFileExt (entries [i ].name ), "wav" , 3 ))
44- || (!strncasecmp (FS_GetFileExt (entries [i ].name ), "xm" , 2 ))) {
42+ const char * ext = FS_GetFileExt (entries [i ].name );
43+
44+ if ((!strncasecmp (ext , "flac" , 4 )) || (!strncasecmp (ext , "it" , 2 )) || (!strncasecmp (ext , "mod" , 3 ))
45+ || (!strncasecmp (ext , "mp3" , 3 )) || (!strncasecmp (ext , "ogg" , 3 )) || (!strncasecmp (ext , "opus" , 4 ))
46+ || (!strncasecmp (ext , "s3m" , 3 )) || (!strncasecmp (ext , "wav" , 3 )) || (!strncasecmp (ext , "xm" , 2 ))) {
4547 strcpy (playlist [count ], cwd );
4648 strcpy (playlist [count ] + strlen (playlist [count ]), entries [i ].name );
4749 count ++ ;
0 commit comments