From 57afb4058710a978bd7b07a368125d04378c62f1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 11 Jul 2017 16:37:21 -0400 Subject: started tweaking with stuff --- gba/source/gamedata.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gba/source/gamedata.h (limited to 'gba/source/gamedata.h') 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 @@ +#ifndef _GAMEDATA_H_ +#define _GAMEDATA_H_ + +#include +#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') + +bool initSaveData( + pSaveBlock1* SaveBlock1, + pSaveBlock2* SaveBlock2, + pSaveBlock3* SaveBlock3); + +#endif -- cgit 1.4.1