mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- fixed the CDDA check to not catch all RIFF files.
This commit is contained in:
parent
a76cdd0946
commit
9bb8da2533
1 changed files with 3 additions and 14 deletions
|
@ -221,21 +221,10 @@ MusInfo *ZMusic_OpenSong (MusicIO::FileInterface *reader, EMidiDevice device, co
|
|||
}
|
||||
|
||||
// Check for CDDA "format"
|
||||
else if (id[0] == (('R') | (('I') << 8) | (('F') << 16) | (('F') << 24)))
|
||||
else if ((id[0] == MAKE_ID('R', 'I', 'F', 'F') && id[2] == MAKE_ID('C', 'D', 'D', 'A')))
|
||||
{
|
||||
uint32_t subid;
|
||||
|
||||
reader->seek(8, SEEK_CUR);
|
||||
if (reader->read(&subid, 4) == 4)
|
||||
{
|
||||
reader->seek(-12, SEEK_CUR);
|
||||
|
||||
if (subid == (('C') | (('D') << 8) | (('D') << 16) | (('A') << 24)))
|
||||
{
|
||||
// This is a CDDA file
|
||||
info = CDDA_OpenSong(reader);
|
||||
}
|
||||
}
|
||||
// This is a CDDA file
|
||||
info = CDDA_OpenSong(reader);
|
||||
}
|
||||
|
||||
// Check for various raw OPL formats
|
||||
|
|
Loading…
Reference in a new issue