From aee2a007ef61068204a1b8be4056537fb85030c1 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 19 Jun 2022 19:36:44 +0200 Subject: [PATCH] Fix some .at3 RIFF [Megami no Etsubo (PSP)] --- src/meta/riff.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meta/riff.c b/src/meta/riff.c index bd299934..d17b8518 100644 --- a/src/meta/riff.c +++ b/src/meta/riff.c @@ -452,6 +452,9 @@ VGMSTREAM* init_vgmstream_riff(STREAMFILE* sf) { riff_size + 0x08 + 0x08 == file_size || riff_size + 0x08 + 0x09 == file_size || riff_size + 0x08 - 0x3E == file_size || riff_size + 0x08 - 0x02 == file_size)) ignore_riff_size = 1; /* [Cross Gate (PC)] (last info LIST chunk has wrong size) */ + + else if (codec == 0xFFFE && riff_size + 0x08 + 0x40 == file_size) + file_size -= 0x40; /* [Megami no Etsubo (PSP)] (has extra padding in all files) */ } /* check for truncated RIFF */