From fa6c98696ba039810005e546fd24c09c2e90f3d2 Mon Sep 17 00:00:00 2001 From: Adam Gashlin Date: Tue, 26 Apr 2016 11:02:11 -0400 Subject: [PATCH] Accept 0x00010102 in header for CWAV This is supposedly in files from Fire Emblem Fates and Hyrule Warriors Legends. --- src/meta/rwsd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/meta/rwsd.c b/src/meta/rwsd.c index 43bef3c1..7192d229 100644 --- a/src/meta/rwsd.c +++ b/src/meta/rwsd.c @@ -46,7 +46,11 @@ static void read_rwav(struct rwav_data * rd) /* little endian, version 2 */ if ((uint32_t)read_32bitBE(rd->offset+4,rd->streamFile)!=0xFFFE4000 || - (uint32_t)read_32bitBE(rd->offset+8,rd->streamFile)!=0x00000102) + ( + (uint32_t)read_32bitBE(rd->offset+8,rd->streamFile)!=0x00000102 && + (uint32_t)read_32bitBE(rd->offset+8,rd->streamFile)!=0x00010102 + ) + ) return; chunk_table_offset = rd->offset+0x18;