Merge pull request #854 from mbc07/Sims2_XA

Handle The Sims 2 XA header variant
This commit is contained in:
bnnm 2021-05-07 16:23:18 +02:00 committed by GitHub
commit f12c89c8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,9 @@ VGMSTREAM * init_vgmstream_maxis_xa(STREAMFILE *streamFile) {
goto fail;
/* check header */
if ((read_32bitBE(0x00,streamFile) != 0x58414900) && /* "XAI\0" */
(read_32bitBE(0x00,streamFile) != 0x58414A00)) /* "XAJ\0" (some odd song uses this, no apparent diffs) */
if ((read_32bitBE(0x00,streamFile) != 0x58414900) && /* "XAI\0" (sound/speech)*/
(read_32bitBE(0x00,streamFile) != 0x58414A00) && /* "XAJ\0" (music, no apparent diffs) */
(read_32bitBE(0x00,streamFile) != 0x58410000)) /* "XA\0\0" (used in The Sims 2, no apparent diffs) */
goto fail;
loop_flag = 0;