From 4fd456e1583a4c8686c8de87c2aeb1eb78125be1 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Wed, 5 May 2021 02:20:00 +0200 Subject: Adding Code Breaker cheat support This works on both interpreter and dynarec. Tested in MIPS, ARM and x86, still needs some more testing, some edge cases can be buggy. --- x86/x86_emit.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'x86') diff --git a/x86/x86_emit.h b/x86/x86_emit.h index ef79110..45b663b 100644 --- a/x86/x86_emit.h +++ b/x86/x86_emit.h @@ -2236,6 +2236,12 @@ static void function_cc execute_swi(u32 pc) generate_indirect_branch_cycle_update(dual); \ } \ +#define thumb_process_cheats() \ + generate_function_call(process_cheats); + +#define arm_process_cheats() \ + generate_function_call(process_cheats); + #define thumb_swi() \ generate_swi_hle_handler(opcode & 0xFF); \ generate_update_pc((pc + 2)); \ -- cgit v1.2.3