From 1d2474df972b8d78d5383094e67764f7b7faaa33 Mon Sep 17 00:00:00 2001 From: "Mateus B. Cassiano" Date: Fri, 7 May 2021 09:44:54 -0400 Subject: [PATCH] Handle The Sims 2 XA header variant --- src/meta/maxis_xa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meta/maxis_xa.c b/src/meta/maxis_xa.c index 955aca45..d31129f3 100644 --- a/src/meta/maxis_xa.c +++ b/src/meta/maxis_xa.c @@ -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;