Cabela's African Safari (PSP)

This commit is contained in:
bnnm 2022-06-26 17:04:40 +02:00
parent c277932b03
commit 7c12a4b91a

View File

@ -52,12 +52,16 @@ VGMSTREAM* init_vgmstream_vag(STREAMFILE* sf) {
/* check variation */ /* check variation */
switch(vag_id) { switch(vag_id) {
case 0x56414731: /* "VAG1" (1 channel) [Metal Gear Solid 3 (PS2)] */ case 0x56414731: /* "VAG1" [Metal Gear Solid 3 (PS2), Cabela's African Safari (PSP)] */
meta_type = meta_PS2_VAG1; meta_type = meta_PS2_VAG1; //TODO not always Konami
start_offset = 0x40; /* 0x30 is extra data in VAG1 */ start_offset = 0x40; /* 0x30 is extra data in VAG1 */
channels = 1; interleave = 0x10;
interleave = 0;
loop_flag = 0; loop_flag = 0;
/* MGS3 is 0 while Cabela's has this, plus description is 0x10 " " then 0x10 "-" */
channels = read_u8(0x1e, sf);
if (channels == 0)
channels = 1;
break; break;
case 0x56414732: /* "VAG2" (2 channels) [Metal Gear Solid 3 (PS2)] */ case 0x56414732: /* "VAG2" (2 channels) [Metal Gear Solid 3 (PS2)] */