Allow .flac to be a filename extension for sng file and jukebox

This commit is contained in:
zicodxx 2012-03-28 10:03:26 +02:00
parent b22a6b5582
commit 4852ceb347
3 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,7 @@ D2X-Rebirth Changelog
--------
main/movie.c: Call all necessary MVE functions when initializing robot movies to prevent crashes if a robot movie is the first one the program plays
main/slew.c: Fix compile-time error when building without editor
arch/sdl/jukebox.c, main/songs.c: Allow .flac to be a filename extension for sng file and jukebox
20120324
--------

View file

@ -57,7 +57,7 @@ void jukebox_unload()
JukeboxSongs.num_songs = JukeboxSongs.max_songs = JukeboxSongs.max_buf = 0;
}
char *jukebox_exts[] = { ".mp3", ".ogg", ".wav", ".aif", ".mid", NULL };
char *jukebox_exts[] = { ".mp3", ".ogg", ".wav", ".aif", ".mid", ".flac", NULL };
int read_m3u(void)
{

View file

@ -128,7 +128,8 @@ void songs_init()
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".mp3") ||
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".ogg") ||
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".aif") ||
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".mid")
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".mid") ||
!stricmp(strrchr(BIMSongs[i].filename, '.'), ".flac")
)
i++;
}