From fac6ea00fd51e5be1d99db44746ed046378a6c65 Mon Sep 17 00:00:00 2001 From: slipstream/RoL Date: Tue, 21 Feb 2017 20:53:34 +0000 Subject: Forgot to commit a file Added GAME_RUBY/GAME_SAPP/GAME_RS/GAME_FR/GAME_LG/GAME_FRLG/GAME_EM/LANG_JAPAN macros. --- gba/source/payload.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gba/source/payload.h') 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 @@ #include "saveblocks.h" +#define GAME_RUBY (((*(u32*)(0x80000AC)) << 8) == 'VXA\x00') +#define GAME_SAPP (((*(u32*)(0x80000AC)) << 8) == 'PXA\x00') +#define GAME_RS ((GAME_RUBY) || (GAME_SAPP)) +#define GAME_FR (((*(u32*)(0x80000AC)) << 8) == 'RPB\x00') +#define GAME_LG (((*(u32*)(0x80000AC)) << 8) == 'GPB\x00') +#define GAME_FRLG ((GAME_FR) || (GAME_LG)) +#define GAME_EM (((*(u32*)(0x80000AC)) << 8) == 'EPB\x00') + +#define LANG_JAPAN ((*(u8*)(0x80000AF)) == 'J') + void payload(pSaveBlock1 SaveBlock1,pSaveBlock2 SaveBlock2,pSaveBlock3 SaveBlock3); \ No newline at end of file -- cgit 1.4.1