mirror of https://github.com/PCSX2/pcsx2.git
Dmac: Fix incorrect condition for OPH flag hack
Fixes tutorial level in Naruto - Uzumaki Chronicles.
This commit is contained in:
parent
b78fca7b91
commit
80c471a939
|
@ -305,7 +305,7 @@ __fi u32 dmacRead32( u32 mem )
|
||||||
if (++counter == 8)
|
if (++counter == 8)
|
||||||
counter = 2;
|
counter = 2;
|
||||||
// Set OPH and APATH from counter, cycling paths and alternating OPH
|
// Set OPH and APATH from counter, cycling paths and alternating OPH
|
||||||
return gifRegs.stat._u32 & (~(7 << 9) | (counter & 1 ? counter << 9 : 0));
|
return (gifRegs.stat._u32 & ~(7 << 9)) | ((counter & 1) ? (counter << 9) : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return psHu32(mem);
|
return psHu32(mem);
|
||||||
|
|
Loading…
Reference in New Issue