2023-11-10 11:08:36 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "constants/expansion.h"
|
2023-12-29 13:12:17 +00:00
|
|
|
#include "constants/moves.h"
|
|
|
|
#include "constants/species.h"
|
2023-11-10 11:08:36 +00:00
|
|
|
|
|
|
|
// Similar to the GF ROM header, this struct allows external programs to
|
|
|
|
// detect details about Expansion.
|
|
|
|
// For this structure to be useful we have to maintain backwards binary
|
|
|
|
// compatibility. This means that we should only ever append data to the
|
|
|
|
// end. If there are any structs as members then those structs should
|
|
|
|
// not be modified after being introduced.
|
|
|
|
struct RHHRomHeader
|
|
|
|
{
|
|
|
|
/*0x00*/ char rhh_magic[6]; // 'RHHEXP'. Useful to locate the header if it shifts.
|
|
|
|
/*0x06*/ u8 expansionVersionMajor;
|
|
|
|
/*0x07*/ u8 expansionVersionMinor;
|
|
|
|
/*0x08*/ u8 expansionVersionPatch;
|
|
|
|
/*0x09*/ u8 expansionVersionFlags;
|
2023-12-29 13:12:17 +00:00
|
|
|
/*0x0C*/ u32 movesCount;
|
|
|
|
/*0x10*/ u32 numSpecies;
|
2023-11-10 11:08:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct RHHRomHeader sRHHRomHeader =
|
|
|
|
{
|
|
|
|
.rhh_magic = { 'R', 'H', 'H', 'E', 'X', 'P' },
|
|
|
|
.expansionVersionMajor = EXPANSION_VERSION_MAJOR,
|
|
|
|
.expansionVersionMinor = EXPANSION_VERSION_MINOR,
|
|
|
|
.expansionVersionPatch = EXPANSION_VERSION_PATCH,
|
|
|
|
.expansionVersionFlags = (EXPANSION_TAGGED_RELEASE << 0),
|
2023-12-29 13:12:17 +00:00
|
|
|
.movesCount = MOVES_COUNT,
|
|
|
|
.numSpecies = NUM_SPECIES,
|
2023-11-10 11:08:36 +00:00
|
|
|
};
|