Ignore Maxis' XA, as it could be mistaken as headerless XA

This commit is contained in:
bnnm 2017-07-08 00:26:03 +02:00
parent 883d0a4f5b
commit a493a8f09d

View File

@ -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) {