Dmac: Fix incorrect condition for OPH flag hack

Fixes tutorial level in Naruto - Uzumaki Chronicles.
This commit is contained in:
Stenzek
2023-01-13 12:20:12 +00:00
committed by refractionpcsx2
parent b78fca7b91
commit 80c471a939
+1 -1
View File
@@ -305,7 +305,7 @@ __fi u32 dmacRead32( u32 mem )
if (++counter == 8)
counter = 2;
// 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);