about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorslipstream/RoL <l33twax@yahoo.com>2017-02-21 20:53:34 +0000
committerslipstream/RoL <l33twax@yahoo.com>2017-02-21 20:53:34 +0000
commitfac6ea00fd51e5be1d99db44746ed046378a6c65 (patch)
tree1b0c95fbaf67d77ad31d1d7fa705bb80b0a5af23
parent3600f4249f39ec37e41e57aed70c8af620ff847c (diff)
downloadgen3uploader-fac6ea00fd51e5be1d99db44746ed046378a6c65.tar.gz
gen3uploader-fac6ea00fd51e5be1d99db44746ed046378a6c65.tar.bz2
gen3uploader-fac6ea00fd51e5be1d99db44746ed046378a6c65.zip
Forgot to commit a file
Added
GAME_RUBY/GAME_SAPP/GAME_RS/GAME_FR/GAME_LG/GAME_FRLG/GAME_EM/LANG_JAPAN
macros.
-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