blob: 4d0a2a9c80ece8f11165f580c6adaa0792e083f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Copyright (C) 2017 hatkirby
* Copyright (C) 2017 slipstream/RoL
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _GAMEDATA_H_
#define _GAMEDATA_H_
#include <gba.h>
#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
|