forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defines for Expansion version number (#3454)
- Loading branch information
Showing
7 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef GUARD_CONSTANTS_EXPANSION_H | ||
#define GUARD_CONSTANTS_EXPANSION_H | ||
|
||
#define EXPANSION_VERSION_MAJOR 1 | ||
#define EXPANSION_VERSION_MINOR 7 | ||
#define EXPANSION_VERSION_PATCH 0 | ||
|
||
// FALSE if this this version of Expansion is not a tagged commit, i.e. | ||
// it contains unreleased changes. | ||
#define EXPANSION_TAGGED_RELEASE FALSE | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "global.h" | ||
#include "constants/expansion.h" | ||
|
||
// 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; | ||
}; | ||
|
||
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), | ||
}; |