about summary refs log tree commit diff stats
path: root/gba/source/gamedata.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-11 16:37:21 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-11 16:37:21 -0400
commit57afb4058710a978bd7b07a368125d04378c62f1 (patch)
tree7a06f1679f0612c58d5a209a013261ff5ad6cb82 /gba/source/gamedata.h
parent004575f7cec14946c1936aceca6efee38b7f8a74 (diff)
downloadgen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.tar.gz
gen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.tar.bz2
gen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.zip
started tweaking with stuff
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