Skip to content

Commit

Permalink
- Fix PADRead signature matching for Ikaruga.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed May 30, 2020
1 parent 4df620f commit 3a1257d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cube/swiss/source/patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -9806,12 +9806,14 @@ int Patch_PADStatus(u32 *data, u32 length, int dataType)
PADReadSigs[j].offsetFoundAt = i;
break;
case 5:
if (findx_pattern(data, dataType, i + 5, length, &OSDisableInterruptsSig) &&
findx_pattern(data, dataType, i + 26, length, &OSDisableInterruptsSig) &&
findx_pattern(data, dataType, i + 119, length, &SIGetResponseSigs[3]) &&
findx_pattern(data, dataType, i + 159, length, &OSRestoreInterruptsSig) &&
findx_pattern(data, dataType, i + 174, length, &SIGetResponseSigs[3]) &&
findx_pattern(data, dataType, i + 230, length, &OSRestoreInterruptsSig))
if (findx_pattern (data, dataType, i + 5, length, &OSDisableInterruptsSig) &&
findx_pattern (data, dataType, i + 26, length, &OSDisableInterruptsSig) &&
findx_patterns(data, dataType, i + 119, length, &SIGetResponseSigs[3],
&SIGetResponseSigs[4], NULL) &&
findx_pattern (data, dataType, i + 159, length, &OSRestoreInterruptsSig) &&
findx_patterns(data, dataType, i + 174, length, &SIGetResponseSigs[3],
&SIGetResponseSigs[4], NULL) &&
findx_pattern (data, dataType, i + 230, length, &OSRestoreInterruptsSig))
PADReadSigs[j].offsetFoundAt = i;
break;
case 6:
Expand Down

0 comments on commit 3a1257d

Please sign in to comment.