From 7bffa1a5cd469cf6fa8e50b16a7f98af9d562671 Mon Sep 17 00:00:00 2001 From: bxaimc Date: Thu, 21 Apr 2022 00:06:11 -0400 Subject: [PATCH] More 2DX9 loop fixes thanks to IIDX13. Make me suffer Konami. --- src/meta/2dx9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/2dx9.c b/src/meta/2dx9.c index cefd664e..be1ccc3d 100644 --- a/src/meta/2dx9.c +++ b/src/meta/2dx9.c @@ -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;