CDVD: Don't allow DMA read if DMA isn't running

This commit is contained in:
refractionpcsx2 2021-11-16 09:31:34 +00:00
parent de577709d9
commit e015b91ed1
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ int cdvdReadSector()
CDVD_LOG("SECTOR %d (BCR %x;%x)", cdvd.Sector, HW_DMA3_BCR_H16, HW_DMA3_BCR_L16);
bcr = (HW_DMA3_BCR_H16 * HW_DMA3_BCR_L16) * 4;
if (bcr < cdvd.BlockSize)
if (bcr < cdvd.BlockSize || !(HW_DMA3_CHCR & 0x01000000))
{
CDVD_LOG("READBLOCK: bcr < cdvd.BlockSize; %x < %x", bcr, cdvd.BlockSize);
if (HW_DMA3_CHCR & 0x01000000)