EA SCHl: Fixed PS2 bank offsets

This commit is contained in:
NicknineTheEagle 2020-11-07 02:58:32 +03:00
parent 8b463f9d53
commit 4f03a5112d

View File

@ -1380,9 +1380,7 @@ static VGMSTREAM * init_vgmstream_ea_variable_header(STREAMFILE* sf, ea_header*
for (i = 0; i < ea->channels; i++) {
vgmstream->ch[i].offset = ea->offsets[0] + interleave*i;
}
} else if ((vgmstream->coding_type == coding_PCM8 || vgmstream->coding_type == coding_PCM16LE) &&
ea->platform == EA_PLATFORM_PS2 &&
(ea->flag_value & 0x100)) {
} else if (ea->platform == EA_PLATFORM_PS2 && (ea->flag_value & 0x100)) {
/* weird 0x10 mini header when played on IOP (codec/loop start/loop end/samples) [SSX 3 (PS2)] */
for (i = 0; i < vgmstream->channels; i++) {
vgmstream->ch[i].offset = ea->offsets[i] + 0x10;