mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
Allow BIK .xmv extension [Emergency Heroes (Wii)]
This commit is contained in:
parent
964397c1fb
commit
6074da0f4c
@ -625,6 +625,7 @@ static const char* extension_list[] = {
|
|||||||
"xma",
|
"xma",
|
||||||
"xma2",
|
"xma2",
|
||||||
"xmu",
|
"xmu",
|
||||||
|
"xmv",
|
||||||
"xnb",
|
"xnb",
|
||||||
"xsh",
|
"xsh",
|
||||||
"xsf",
|
"xsf",
|
||||||
|
@ -12,14 +12,15 @@ VGMSTREAM* init_vgmstream_bik(STREAMFILE* sf) {
|
|||||||
size_t stream_size;
|
size_t stream_size;
|
||||||
|
|
||||||
/* checks */
|
/* checks */
|
||||||
/* .bik/bik2/bk2: standard
|
/* bink1/2 header, followed by version-char (audio is the same) */
|
||||||
* .bika: fake extension for demuxed audio */
|
if ((read_u32be(0x00,sf) & 0xffffff00) != get_id32be("BIK\0") &&
|
||||||
if (!check_extensions(sf,"bik,bik2,bk2,bika"))
|
(read_u32be(0x00,sf) & 0xffffff00) != get_id32be("KB2\0"))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* check bink1/2 header, followed by version-char (audio is the same) */
|
/* .bik/bik2/bk2: standard
|
||||||
if ((read_32bitBE(0x00,sf) & 0xffffff00) != get_id32be("BIK\0") &&
|
* .xmv: Reflections games [Driver: Parallel Lines (Wii), Emergency Heroes (Wii)]
|
||||||
(read_32bitBE(0x00,sf) & 0xffffff00) != get_id32be("KB2\0"))
|
* .bika: fake extension for demuxed audio */
|
||||||
|
if (!check_extensions(sf,"bik,bik2,bk2,xmv,bika"))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* find target stream info and samples */
|
/* find target stream info and samples */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user