mirror of https://github.com/PCSX2/pcsx2.git
CDVD: Don't allow DMA read if DMA isn't running
This commit is contained in:
parent
de577709d9
commit
e015b91ed1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue