mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
处理编译的问题
This commit is contained in:
parent
2091380ada
commit
24458c953c
@ -20,7 +20,7 @@ typedef int cheat_error_t;
|
||||
#define CHEAT_MODE_KEYONOFF 3
|
||||
#define CHEAT_MODE_SIZE 3
|
||||
|
||||
#define MAKE_ENTID(hole, key) ((key+1)<<16|(hole+1))
|
||||
#define MAKE_ENTID(hole, key) (((key)+1)<<16|((hole)+1))
|
||||
#define ENT_USING(entid) ((entid) > 0xffff)
|
||||
|
||||
cheat_error_t init_current_cheat( u32 id, u16 len );
|
||||
|
@ -5,9 +5,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef instruction_t* CodeLocation;
|
||||
#define CodeAtLocation(p) (*(p))
|
||||
|
||||
#define MAKE_ENT(hole,key) ((key<<16) | hole)
|
||||
#define ROM_LOC (0x20000000u)
|
||||
#define MAKE_ENT(hole,key) (((key)<<16) | (hole))
|
||||
#define ROM_LOC ((CodeLocation)0x20000000u)
|
||||
#define GBA_KEYCODE(k) (0x3ff & (~(k)))
|
||||
|
||||
#define SIZE_32M (32*1024*1024)
|
||||
@ -98,9 +100,6 @@ cheat_error_t fini_current_cheat()
|
||||
return CCHT_OK;
|
||||
}
|
||||
|
||||
typedef instruction_t* CodeLocation;
|
||||
#define CodeAtLocation(p) (*(p))
|
||||
|
||||
// *******************************************
|
||||
// code for patch rom with cheat instruction
|
||||
// *******************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user