Account for extra byte at end of DSP block.

This commit is contained in:
bearoso 2023-03-24 21:01:25 -05:00 committed by GitHub
parent fea6027898
commit b418792d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1585,7 +1585,7 @@ int S9xUnfreezeFromStream (STREAM stream)
{ {
printf("Adjusting old APU snapshot (snapshot version %d, current is %d)\n", version, SNAPSHOT_VERSION); printf("Adjusting old APU snapshot (snapshot version %d, current is %d)\n", version, SNAPSHOT_VERSION);
const size_t spc_block_size = 65700; const size_t spc_block_size = 65700;
const size_t old_dsp_block_size = 514; const size_t old_dsp_block_size = 513;
const size_t added_bytes_v12 = 128; const size_t added_bytes_v12 = 128;
const size_t bytes_afterward = 16; const size_t bytes_afterward = 16;
// Shift end to make room for extra 128 bytes // Shift end to make room for extra 128 bytes