From 0bd433210e8a9079291f1e42012cee8a4cfe2b6b Mon Sep 17 00:00:00 2001 From: Asnivor Date: Mon, 12 Mar 2018 10:20:56 +0000 Subject: [PATCH] Fixed tzx tape standard data block PauseAfter value. Now speedlock7 encoded games should work --- .../Computers/SinclairSpectrum/Media/Tape/TzxSerializer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Media/Tape/TzxSerializer.cs b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Media/Tape/TzxSerializer.cs index 9d4188e351..28a761cd3d 100644 --- a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Media/Tape/TzxSerializer.cs +++ b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Media/Tape/TzxSerializer.cs @@ -268,7 +268,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum t.DataPeriods = new List(); int pauseLen = GetWordValue(data, _position); - + if (pauseLen == 0) + pauseLen = 1000; int blockLen = GetWordValue(data, _position + 2); _position += 4; @@ -276,7 +277,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum byte[] tmp = new byte[blockLen]; tmp = data.Skip(_position).Take(blockLen).ToArray(); - var t2 = DecodeDataBlock(t, tmp, DataBlockType.Standard, 1000); + var t2 = DecodeDataBlock(t, tmp, DataBlockType.Standard, pauseLen); // add the block _datacorder.DataBlocks.Add(t2);