Refactor pattern for ir hook

This commit is contained in:
TuxSH 2017-06-09 04:11:23 +02:00 committed by Ezekiel Bethel
parent c0059c83ac
commit 53e2ef24f1
No known key found for this signature in database
GPG Key ID: 6915A190A8C54CCB
2 changed files with 5 additions and 7 deletions

View File

@ -255,8 +255,6 @@ Result InputRedirection_DoOrUndoPatches(void)
static const u32 irOrigCppFlagCode[] = {
0xE3550000, // cmp r5, #0
0xE3A0B080, // mov r11, #0x80
0xE28D0060, // add r0, sp, #0xb0+var_50
0x0A00002C // beq loc_105688
};
static u32 *irHookLoc, *irWaitSyncLoc, *irCppFlagLoc;
@ -316,7 +314,7 @@ Result InputRedirection_DoOrUndoPatches(void)
*irWaitSyncLoc = 0xE3A00000; // mov r0, #0
// This NOPs out a flag check in ir:user's CPP emulation
*(irCppFlagLoc+3) = 0xea00002c;
*irCppFlagLoc = 0xE3150000; // tst r5, #0
}
}