From 437667b2dc396f07612788817811597e8dc12b87 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Tue, 25 Feb 2020 21:51:16 +0300 Subject: [PATCH] Minor tweaks --- src/meta/ea_schl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/meta/ea_schl.c b/src/meta/ea_schl.c index a8f92043..50222ec8 100644 --- a/src/meta/ea_schl.c +++ b/src/meta/ea_schl.c @@ -177,11 +177,7 @@ VGMSTREAM * init_vgmstream_ea_schl_video(STREAMFILE *streamFile) { /* .dct: early-mid [ex. Need for Speed II SE (PC), FIFA 98 (PC)] */ /* .mad: mid */ /* .vp6: late */ - if (check_extensions(streamFile, "vp6")) { - /* check initial movie block id */ - if (read_32bitBE(0x00, streamFile) != 0x4D566864) /* "MVhd" */ - goto fail; - } else if (check_extensions(streamFile, "uv,dct")) { + if (check_extensions(streamFile, "uv,dct")) { /* starts with audio header block */ if (read_32bitBE(0x00, streamFile) != EA_BLOCKID_HEADER) /* "SCHl" */ goto fail; @@ -189,6 +185,10 @@ VGMSTREAM * init_vgmstream_ea_schl_video(STREAMFILE *streamFile) { /* check initial movie block id */ if (read_32bitBE(0x00, streamFile) != 0x4D41446B) /* "MADk" */ goto fail; + } else if (check_extensions(streamFile, "vp6")) { + /* check initial movie block id */ + if (read_32bitBE(0x00, streamFile) != 0x4D566864) /* "MVhd" */ + goto fail; } else { goto fail; } @@ -381,7 +381,7 @@ VGMSTREAM * init_vgmstream_ea_abk(STREAMFILE *streamFile) { if (target_entry_offset == 0) goto fail; - /* 0x00: type (0x00 - normal, 0x01 - streamed, 0x02 - streamed looped */ + /* 0x00: type (0x00 - normal, 0x01 - streamed, 0x02 - streamed looped) */ /* 0x01: ??? */ /* 0x04: index for normal sounds, offset for streamed sounds */ /* 0x08: loop offset for streamed sounds */