ZXHawk: Fixed bug in datacorder 'stop-the-tape' command implementation (when this command was detected it was skipping forward an extra block)

This commit is contained in:
Asnivor 2018-06-21 14:03:10 +01:00
parent 8236d7b645
commit 84bc77e82e
1 changed files with 2 additions and 0 deletions

View File

@ -531,6 +531,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
case TapeCommand.STOP_THE_TAPE:
_machine.Spectrum.OSD_TapeStoppedAuto();
shouldStop = true;
if (_currentDataBlockIndex >= _dataBlocks.Count())
RTZ();
@ -546,6 +547,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
if (is48k)
{
_machine.Spectrum.OSD_TapeStoppedAuto();
shouldStop = true;
if (_currentDataBlockIndex >= _dataBlocks.Count())
RTZ();