mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
添加log看看
This commit is contained in:
parent
41340e1073
commit
74b6201437
@ -1,10 +1,13 @@
|
||||
#include "arm11/acl.h"
|
||||
#include "arm11/cheat.h"
|
||||
#include "arm11/fmt.h"
|
||||
#include "util.h"
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include
|
||||
|
||||
typedef u32 instruction_t;
|
||||
typedef instruction_t* CodeLocation;
|
||||
#define CodeAtLocation(p) (*(p))
|
||||
@ -430,5 +433,6 @@ cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32
|
||||
rom_append_newirq( page, hookpoint, n_hookpoint );
|
||||
rom_patch_hookpoint( page, hookpoint, n_hookpoint );
|
||||
rom_append_cheatproc( mode, page + n_hookpoint * IW_INSTR_LEN, GBA_KEYCODE(bindkey), storagemem );
|
||||
debug_printf( "patch: mode=%d,size=%d,hp=%d,key=%d", mode, *outsize, n_hookpoint, bindkey );
|
||||
return CCHT_OK;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user