mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
Ignore Maxis' XA, as it could be mistaken as headerless XA
This commit is contained in:
parent
883d0a4f5b
commit
a493a8f09d
@ -39,6 +39,8 @@ VGMSTREAM * init_vgmstream_cdxa(STREAMFILE *streamFile) {
|
||||
|
||||
/* don't misdetect Reflections' XA ("XA30" / "04SW") */
|
||||
if (read_32bitBE(0x00,streamFile) == 0x58413330 || read_32bitBE(0x00,streamFile) == 0x30345357) goto fail;
|
||||
/* don't misdetect Maxis XA ("XAI\0" / "XAJ\0") */
|
||||
if (read_32bitBE(0x00,streamFile) == 0x58414900 || read_32bitBE(0x00,streamFile) == 0x58414A00) goto fail;
|
||||
|
||||
/* First init to have the correct info of the channel */
|
||||
if (!headerless) {
|
||||
|
Loading…
Reference in New Issue
Block a user