about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--gba/source/payload.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gba/source/payload.h b/gba/source/payload.h index 3f9ca62..d95476c 100644 --- a/gba/source/payload.h +++ b/gba/source/payload.h
@@ -9,4 +9,14 @@
9 9
10#include "saveblocks.h" 10#include "saveblocks.h"
11 11
12#define GAME_RUBY (((*(u32*)(0x80000AC)) << 8) == 'VXA\x00')
13#define GAME_SAPP (((*(u32*)(0x80000AC)) << 8) == 'PXA\x00')
14#define GAME_RS ((GAME_RUBY) || (GAME_SAPP))
15#define GAME_FR (((*(u32*)(0x80000AC)) << 8) == 'RPB\x00')
16#define GAME_LG (((*(u32*)(0x80000AC)) << 8) == 'GPB\x00')
17#define GAME_FRLG ((GAME_FR) || (GAME_LG))
18#define GAME_EM (((*(u32*)(0x80000AC)) << 8) == 'EPB\x00')
19
20#define LANG_JAPAN ((*(u8*)(0x80000AF)) == 'J')
21
12void payload(pSaveBlock1 SaveBlock1,pSaveBlock2 SaveBlock2,pSaveBlock3 SaveBlock3); \ No newline at end of file 22void payload(pSaveBlock1 SaveBlock1,pSaveBlock2 SaveBlock2,pSaveBlock3 SaveBlock3); \ No newline at end of file