mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-14 18:47:39 +01:00
Merge pull request #1278 from bnnm/vag
- Fix some .vag [Woody Woodpecker: Escape from Buzz Buzzard Park (PS2)]
This commit is contained in:
commit
4e3c3f13de
@ -246,12 +246,19 @@ VGMSTREAM* init_vgmstream_vag(STREAMFILE* sf) {
|
|||||||
channel_size = channel_size / channels;
|
channel_size = channel_size / channels;
|
||||||
}
|
}
|
||||||
else if (version == 0x00000020 && reserved == 0x01010101) {
|
else if (version == 0x00000020 && reserved == 0x01010101) {
|
||||||
/* Gift (PS2) */
|
/* Eko Software */
|
||||||
start_offset = 0x800;
|
start_offset = 0x800;
|
||||||
channels = 2; /* mono VAGs in this game are standard, without reserved value */
|
channels = 2; /* mono VAGs in this game are standard, without reserved value */
|
||||||
interleave = 0x2000;
|
|
||||||
if (read_u32be(0x4800,sf) == 0x00000000) /* one file has bigger interleave, detectable with ch2's null frame */
|
/* detect interleave with ch2's null frame */
|
||||||
|
if (read_u32be(0x800 + 0x400,sf) == 0x00000000) /* Woody Woodpecker: Escape from Buzz Buzzard Park (PS2) */
|
||||||
|
interleave = 0x400;
|
||||||
|
else if (read_u32be(0x800 + 0x4000,sf) == 0x00000000) /* Gift (PS2), one file */
|
||||||
interleave = 0x4000;
|
interleave = 0x4000;
|
||||||
|
else if (read_u32be(0x800 + 0x2000,sf) == 0x00000000) /* Gift (PS2) */
|
||||||
|
interleave = 0x2000;
|
||||||
|
else
|
||||||
|
goto fail;
|
||||||
|
|
||||||
channel_size = channel_size / channels;
|
channel_size = channel_size / channels;
|
||||||
has_interleave_last = 1;
|
has_interleave_last = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user