Fix support for XWB files without extension [Ikaruga(PC)]

This commit is contained in:
RuRuRu 2023-03-12 13:54:20 +09:00
parent aae7fa9ae9
commit 792afe8495

View File

@ -97,7 +97,7 @@ VGMSTREAM* init_vgmstream_xwb(STREAMFILE* sf) {
* .xna: Touhou Makukasai ~ Fantasy Danmaku Festival (PC) * .xna: Touhou Makukasai ~ Fantasy Danmaku Festival (PC)
* (extensionless): Ikaruga (X360/PC), Grabbed by the Ghoulies (Xbox) * (extensionless): Ikaruga (X360/PC), Grabbed by the Ghoulies (Xbox)
* .bd: Fatal Frame 2 (Xbox) */ * .bd: Fatal Frame 2 (Xbox) */
if (!check_extensions(sf,"xwb,xna,bd")) if (!check_extensions(sf,"xwb,xna,bd,"))
goto fail; goto fail;
xwb.little_endian = is_id32be(0x00,sf, "WBND"); /* Xbox/PC */ xwb.little_endian = is_id32be(0x00,sf, "WBND"); /* Xbox/PC */