ZXHawk: improvements to tape traps

This commit is contained in:
Asnivor 2018-06-22 13:43:26 +01:00
parent b81a7539cf
commit e2b58cfb98
1 changed files with 13 additions and 1 deletions

View File

@ -847,7 +847,12 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
if (_monitorTimeOut < 0)
{
AutoStopTape();
if (_dataBlocks[_currentDataBlockIndex].BlockDescription != BlockType.PAUSE_BLOCK &&
_dataBlocks[_currentDataBlockIndex].BlockDescription != BlockType.PAUS)
{
AutoStopTape();
}
return;
}
@ -859,6 +864,13 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
// get current datablock
var block = DataBlocks[_currentDataBlockIndex];
// is this a pause block?
if (block.BlockDescription == BlockType.PAUS || block.BlockDescription == BlockType.PAUSE_BLOCK)
{
// dont autostop the tape here
return;
}
// pause in ms at the end of the current block
int blockPause = block.PauseInMS;