mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-06 14:44:25 +01:00
Add .xna XWB [Touhou Makukasai ~ Fantastic Danmaku Festival (PC)]
This commit is contained in:
parent
8a57cf4729
commit
8cf27cc15e
@ -83,13 +83,15 @@ VGMSTREAM * init_vgmstream_xwb(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
|
|
||||||
/* checks */
|
/* checks */
|
||||||
if (!check_extensions(streamFile,"xwb"))
|
/* .xwb: standard
|
||||||
|
* .xna: Touhou Makukasai ~ Fantasy Danmaku Festival (PC) */
|
||||||
|
if (!check_extensions(streamFile,"xwb,xna"))
|
||||||
goto fail;
|
goto fail;
|
||||||
if ((read_32bitBE(0x00,streamFile) != 0x57424E44) && /* "WBND" (LE) */
|
if ((read_32bitBE(0x00,streamFile) != 0x57424E44) && /* "WBND" (LE) */
|
||||||
(read_32bitBE(0x00,streamFile) != 0x444E4257)) /* "DNBW" (BE) */
|
(read_32bitBE(0x00,streamFile) != 0x444E4257)) /* "DNBW" (BE) */
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
xwb.little_endian = read_32bitBE(0x00,streamFile) == 0x57424E44;/* WBND */
|
xwb.little_endian = read_32bitBE(0x00,streamFile) == 0x57424E44; /* WBND */
|
||||||
if (xwb.little_endian) {
|
if (xwb.little_endian) {
|
||||||
read_32bit = read_32bitLE;
|
read_32bit = read_32bitLE;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user