Skip to content

Commit

Permalink
Add MOVES_COUNT and NUM_SPECIES to RHH rom header (rh-hideout#3831)
Browse files Browse the repository at this point in the history
* Add MOVES_COUNT and NUM_SPECIES to RHH rom header
  • Loading branch information
Ninjdai1 authored Dec 29, 2023
1 parent 94a650a commit 16a3954
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rom_header_rhh.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "global.h"
#include "constants/expansion.h"
#include "constants/moves.h"
#include "constants/species.h"

// Similar to the GF ROM header, this struct allows external programs to
// detect details about Expansion.
Expand All @@ -14,6 +16,8 @@ struct RHHRomHeader
/*0x07*/ u8 expansionVersionMinor;
/*0x08*/ u8 expansionVersionPatch;
/*0x09*/ u8 expansionVersionFlags;
/*0x0C*/ u32 movesCount;
/*0x10*/ u32 numSpecies;
};

static const struct RHHRomHeader sRHHRomHeader =
Expand All @@ -23,4 +27,6 @@ static const struct RHHRomHeader sRHHRomHeader =
.expansionVersionMinor = EXPANSION_VERSION_MINOR,
.expansionVersionPatch = EXPANSION_VERSION_PATCH,
.expansionVersionFlags = (EXPANSION_TAGGED_RELEASE << 0),
.movesCount = MOVES_COUNT,
.numSpecies = NUM_SPECIES,
};

0 comments on commit 16a3954

Please sign in to comment.