mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Dmac: Fix incorrect condition for OPH flag hack
Fixes tutorial level in Naruto - Uzumaki Chronicles.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user