VAG: Remove bigfile check temporarily

This commit is contained in:
EdnessP 2023-07-27 00:44:38 +03:00 committed by GitHub
parent 90adcd5164
commit 2e44b1e051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,9 +287,10 @@ VGMSTREAM* init_vgmstream_vag(STREAMFILE* sf) {
goto fail; goto fail;
} }
/* ignore bigfiles and bad extractions (approximate) */ /* ignore bad extractions (approximate) */
if (channel_size * channels + interleave * channels + start_offset * channels + 0x8000 < get_streamfile_size(sf) || /* bigfile ignoring breaks some of Jak series' VAGs (unless increased to roughly 1.4 MiB) */
channel_size * channels > get_streamfile_size(sf)) { //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", 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)); channel_size, channels, interleave * channels, start_offset * channels, (uint32_t)get_streamfile_size(sf));
goto fail; goto fail;