Fix .bank with encrypted FSB5

This commit is contained in:
bnnm 2020-09-14 16:56:20 +02:00
parent 807e42989e
commit 0b244c50bd

View File

@ -113,8 +113,14 @@ VGMSTREAM* init_vgmstream_fsb5_fev_bank(STREAMFILE* sf) {
temp_sf = setup_subfile_streamfile(sf, subfile_offset,subfile_size, "fsb"); temp_sf = setup_subfile_streamfile(sf, subfile_offset,subfile_size, "fsb");
if (!temp_sf) goto fail; if (!temp_sf) goto fail;
if (read_u32be(0x00, temp_sf) == 0x46534235) {
vgmstream = init_vgmstream_fsb5(temp_sf); vgmstream = init_vgmstream_fsb5(temp_sf);
close_streamfile(temp_sf); close_streamfile(temp_sf);
}
else { //other flag?
vgmstream = init_vgmstream_fsb_encrypted(temp_sf);
close_streamfile(temp_sf);
}
return vgmstream; return vgmstream;