DEV9: Fix ATA MDMA

This commit is contained in:
TheLastRar 2024-01-02 12:20:51 +00:00 committed by refractionpcsx2
parent 3999c08f00
commit bfd0a05289
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ void ATA::PostCmdDMADataFromHost()
void ATA::ATAreadDMA8Mem(u8* pMem, int size)
{
if ((udmaMode >= 0) &&
if ((udmaMode >= 0 || mdmaMode >= 0) &&
(dev9.if_ctrl & SPD_IF_ATA_DMAEN) != 0)
{
if (size == 0 || nsector == -1)
@ -103,7 +103,7 @@ void ATA::ATAreadDMA8Mem(u8* pMem, int size)
void ATA::ATAwriteDMA8Mem(u8* pMem, int size)
{
if ((udmaMode >= 0) &&
if ((udmaMode >= 0 || mdmaMode >= 0) &&
(dev9.if_ctrl & SPD_IF_ATA_DMAEN) != 0)
{
if (nsector == -1)