mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
VAG: Remove bigfile ignoring temporarily
This commit is contained in:
parent
5d494c52b0
commit
3c08136b31
@ -287,9 +287,10 @@ VGMSTREAM* init_vgmstream_vag(STREAMFILE* sf) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* ignore bigfiles and bad extractions (approximate) */
|
||||
if (channel_size * channels + interleave * channels + start_offset * channels + 0x8000 < get_streamfile_size(sf) ||
|
||||
channel_size * channels > get_streamfile_size(sf)) {
|
||||
/* ignore bad extractions (approximate) */
|
||||
/* bigfile ignoring breaks some of Jak series' VAGs (unless increased to roughly 1.4 MiB) */
|
||||
//if (channel_size * channels + interleave * channels + start_offset * channels + 0x80000 < get_streamfile_size(sf) ||
|
||||
if (channel_size * channels > get_streamfile_size(sf)) {
|
||||
vgm_logi("VAG: wrong expected (incorrect extraction? %x * %i + %x + %x + ~ vs %x)\n",
|
||||
channel_size, channels, interleave * channels, start_offset * channels, (uint32_t)get_streamfile_size(sf));
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user