Merge pull request #1121 from bxaimc/master

More 2DX9 loop fixes thanks to IIDX13. Make me suffer Konami.
This commit is contained in:
bxaimc 2022-04-21 00:12:34 -04:00 committed by GitHub
commit 4eb40f005c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,8 @@ VGMSTREAM * init_vgmstream_2dx9(STREAMFILE *streamFile) {
if (read_32bitBE(0x6a,streamFile) != 0x64617461) /* data */
goto fail;
loop_flag = (read_16bitLE(0x0e,streamFile) > 0);
/* IIDX 13 has a false flag for looping files. Konami, pls. */
loop_flag = (read_16bitLE(0x0e,streamFile) > -1);
channel_count = read_16bitLE(0x2e,streamFile);
start_offset = 0x72;