diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-11 16:37:21 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-11 16:37:21 -0400 |
commit | 57afb4058710a978bd7b07a368125d04378c62f1 (patch) | |
tree | 7a06f1679f0612c58d5a209a013261ff5ad6cb82 /gba/source/gamedata.h | |
parent | 004575f7cec14946c1936aceca6efee38b7f8a74 (diff) | |
download | gen3uploader-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.h | 22 |
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 | |||
17 | bool initSaveData( | ||
18 | pSaveBlock1* SaveBlock1, | ||
19 | pSaveBlock2* SaveBlock2, | ||
20 | pSaveBlock3* SaveBlock3); | ||
21 | |||
22 | #endif | ||