mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #355 from Asmodean-/master
Add reg.chcr warning check.
This commit is contained in:
commit
fda48f3d55
|
@ -269,8 +269,13 @@ static __ri void DmaExec( void (*func)(), u32 mem, u32 value )
|
|||
|
||||
//Final Fantasy XII sets the DMA Mode to 3 which doesn't exist. On some channels (like SPR) this will break logic completely. so lets assume they mean chain.
|
||||
if (reg.chcr.MOD == 0x3)
|
||||
{
|
||||
static bool warned; //Check if the warning has already been output to console, to prevent constant spam.
|
||||
if (!warned)
|
||||
{
|
||||
DevCon.Warning(L"%s CHCR.MOD set to 3, assuming 1 (chain)", ChcrName(mem));
|
||||
warned = true;
|
||||
}
|
||||
reg.chcr.MOD = 0x1;
|
||||
}
|
||||
if (reg.chcr.STR && dmacRegs.ctrl.DMAE && !psHu8(DMAC_ENABLER+2))
|
||||
|
|
Loading…
Reference in New Issue