@@ -39,9 +39,11 @@ static Result Menu_GetMusicList(void) {
39
39
qsort (entries , entryCount , sizeof (FsDirectoryEntry ), Utils_Alphasort );
40
40
41
41
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 ))) {
45
47
strcpy (playlist [count ], cwd );
46
48
strcpy (playlist [count ] + strlen (playlist [count ]), entries [i ].name );
47
49
count ++ ;
0 commit comments