修正编译错误

This commit is contained in:
anod 2023-03-07 18:02:22 +08:00
parent 1e11b363c4
commit cc98a5a565

View File

@ -6,8 +6,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include
typedef u32 instruction_t; typedef u32 instruction_t;
typedef instruction_t* CodeLocation; typedef instruction_t* CodeLocation;
#define CodeAtLocation(p) (*(p)) #define CodeAtLocation(p) (*(p))
@ -433,6 +431,6 @@ cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32
rom_append_newirq( page, hookpoint, n_hookpoint ); rom_append_newirq( page, hookpoint, n_hookpoint );
rom_patch_hookpoint( 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 ); 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 ); debug_printf( "patch: mode=%d,size=%ld,hp=%d,key=%d", mode, *outsize, n_hookpoint, bindkey );
return CCHT_OK; return CCHT_OK;
} }