More 2DX9 loop fixes thanks to IIDX13. Make me suffer Konami.

This commit is contained in:
bxaimc 2022-04-21 00:06:11 -04:00
parent 1b4049c445
commit 7bffa1a5cd

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;