From ac7de48a4824f20bf927acbdbebb9861b5bceb12 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Fri, 22 May 2020 19:17:48 +0300 Subject: [PATCH] EA BNK: Removed a hack for MUS files belonging to MPF --- src/meta/ea_schl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/meta/ea_schl.c b/src/meta/ea_schl.c index d9bd9cc3..96a0081e 100644 --- a/src/meta/ea_schl.c +++ b/src/meta/ea_schl.c @@ -264,7 +264,6 @@ fail: /* EA BNK with variable header - from EA games SFXs; also created by sx.exe */ VGMSTREAM * init_vgmstream_ea_bnk(STREAMFILE* sf) { - off_t offset; int target_stream = sf->stream_index; /* check extension */ @@ -276,15 +275,8 @@ VGMSTREAM * init_vgmstream_ea_bnk(STREAMFILE* sf) { if (!check_extensions(sf,"bnk,sdt,mus,abk,ast")) goto fail; - /* check header (doesn't use EA blocks, otherwise very similar to SCHl) */ - if (read_32bitBE(0x100,sf) == EA_BNK_HEADER_LE) - offset = 0x100; /* Harry Potter and the Goblet of Fire (PS2) .mus have weird extra 0x100 bytes */ - else - offset = 0x00; - if (target_stream == 0) target_stream = 1; - - return parse_bnk_header(sf, offset, target_stream - 1, 0); + return parse_bnk_header(sf, 0x00, target_stream - 1, 0); fail: return NULL;