about summary refs log tree commit diff stats
path: root/gba/source/gamedata.h
diff options
context:
space:
mode:
Diffstat (limited to 'gba/source/gamedata.h')
-rw-r--r--gba/source/gamedata.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gba/source/gamedata.h b/gba/source/gamedata.h new file mode 100644 index 0000000..99dfa8e --- /dev/null +++ b/gba/source/gamedata.h
@@ -0,0 +1,22 @@
1#ifndef _GAMEDATA_H_
2#define _GAMEDATA_H_
3
4#include <gba.h>
5#include "saveblocks.h"
6
7#define GAME_RUBY (((*(u32*)(0x80000AC)) << 8) == 'VXA\x00')
8#define GAME_SAPP (((*(u32*)(0x80000AC)) << 8) == 'PXA\x00')
9#define GAME_RS ((GAME_RUBY) || (GAME_SAPP))
10#define GAME_FR (((*(u32*)(0x80000AC)) << 8) == 'RPB\x00')
11#define GAME_LG (((*(u32*)(0x80000AC)) << 8) == 'GPB\x00')
12#define GAME_FRLG ((GAME_FR) || (GAME_LG))
13#define GAME_EM (((*(u32*)(0x80000AC)) << 8) == 'EPB\x00')
14
15#define LANG_JAPAN ((*(u8*)(0x80000AF)) == 'J')
16
17bool initSaveData(
18 pSaveBlock1* SaveBlock1,
19 pSaveBlock2* SaveBlock2,
20 pSaveBlock3* SaveBlock3);
21
22#endif