Fix some SSPF .ssp [Metal Gear Solid 4 (PS3)]

This commit is contained in:
bnnm 2022-05-01 12:13:11 +02:00
parent cdc5753847
commit 2955ab3a81

View File

@ -21,7 +21,7 @@ VGMSTREAM* init_vgmstream_sspf(STREAMFILE* sf) {
goto fail;
/* extra check to ignore .spc, that are a RAM pack of .ssp with a ~0x800 table at the end */
file_size = read_u32be(0x08, sf) + 0x08; /* without padding */
file_size = read_u32be(0x08, sf); /* without padding */
pad_size = 0;
if (file_size % 0x800) /* add padding */
pad_size = 0x800 - (file_size % 0x800);