mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 23:10:10 +01:00
Merge pull request #857 from mbc07/Sims2_XA_p2
Handle The Sims 2 XA header variant, part 2
This commit is contained in:
commit
dcdc1950f5
@ -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)*/
|
||||
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) */
|
||||
(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;
|
||||
|
Loading…
Reference in New Issue
Block a user