probably betterer like this

This commit is contained in:
Arisotura 2019-06-19 22:08:35 +02:00
parent 3807c9bf5b
commit 95f4c1472b
1 changed files with 8 additions and 12 deletions

View File

@ -222,18 +222,6 @@ void WriteInputFIFO(u32 val)
if (!(Cnt & (1<<31))) return; if (!(Cnt & (1<<31))) return;
Update(); Update();
if (RemBlocks == 0)
{
Cnt &= ~(1<<31);
if (Cnt & (1<<30)) NDS::SetIRQ2(NDS::IRQ2_DSi_AES);
DSi::StopNDMAs(1, 0x2A);
DSi::StopNDMAs(1, 0x2B);
}
else
{
CheckInputDMA();
}
} }
void CheckInputDMA() void CheckInputDMA()
@ -276,6 +264,14 @@ void Update()
} }
CheckOutputDMA(); CheckOutputDMA();
if (RemBlocks == 0)
{
Cnt &= ~(1<<31);
if (Cnt & (1<<30)) NDS::SetIRQ2(NDS::IRQ2_DSi_AES);
DSi::StopNDMAs(1, 0x2A);
DSi::StopNDMAs(1, 0x2B);
}
} }