Allow .flac to be a filename extension for sng file and jukebox
This commit is contained in:
parent
b22a6b5582
commit
4852ceb347
|
@ -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
|
||||
--------
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue