From 6ec4cb6755756f95d2bb246b88b433526b93c2cc Mon Sep 17 00:00:00 2001 From: "Mateus B. Cassiano" Date: Fri, 7 May 2021 13:55:43 -0400 Subject: [PATCH] Handle The Sims 2 XA header variant, part 2 --- src/meta/maxis_xa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/meta/maxis_xa.c b/src/meta/maxis_xa.c index d31129f3..b0c3a5cb 100644 --- a/src/meta/maxis_xa.c +++ b/src/meta/maxis_xa.c @@ -12,9 +12,10 @@ VGMSTREAM * init_vgmstream_maxis_xa(STREAMFILE *streamFile) { goto fail; /* check header */ - 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) */ + 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" (sound/speech from The Sims 2, no apparent diffs) */ + (read_32bitBE(0x00,streamFile) != 0x58411200)) /* "XA\x12\0" (music from The Sims 2, no apparent diffs) */ goto fail; loop_flag = 0;