mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 00:20:47 +01:00
Relax XWB size checks for padded files [BlazBlue Centralfiction PC]
This commit is contained in:
parent
e8c1c899e3
commit
fa829d49f7
@ -117,7 +117,8 @@ VGMSTREAM * init_vgmstream_xwb(STREAMFILE *streamFile) {
|
||||
|
||||
/* for Techland's XWB with no data */
|
||||
if (xwb.base_offset == 0) goto fail;
|
||||
if (xwb.data_offset + xwb.data_size != get_streamfile_size(streamFile)) goto fail;
|
||||
/* some BlazBlue Centralfiction songs have padding after data size */
|
||||
if (xwb.data_offset + xwb.data_size > get_streamfile_size(streamFile)) goto fail;
|
||||
|
||||
/* read base entry (WAVEBANKDATA) */
|
||||
off = xwb.base_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user