Add ITEMS_COUNT and ITEM_NAME_LENGTH to RHH rom header (#3988)
* Add item count to RHH rom header There was no way for an external program to access the ITEMS_COUNT. * Add items.h include * Add itemNameLength to RHH rom header * Added padding for additional u8s Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com> * Change itemsCount to a u16 * Fix padding (again) * Update src/rom_header_rhh.c Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com> --------- Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com> Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
This commit is contained in:
parent
b0c76563bf
commit
7ba3f53d42
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "constants/expansion.h"
|
||||
#include "constants/moves.h"
|
||||
#include "constants/species.h"
|
||||
#include "constants/items.h"
|
||||
|
||||
// Similar to the GF ROM header, this struct allows external programs to
|
||||
// detect details about Expansion.
|
||||
|
@ -21,6 +22,9 @@ struct RHHRomHeader
|
|||
/*0x0C*/ u16 numSpecies;
|
||||
/*0x0E*/ u16 abilitiesCount;
|
||||
/*0x10*/ const struct Ability *abilities;
|
||||
/*0x14*/ u16 itemsCount;
|
||||
/*0x16*/ u8 itemNameLength;
|
||||
/*0x17*/ u8 padding;
|
||||
};
|
||||
|
||||
__attribute__((section(".text.consts")))
|
||||
|
@ -35,4 +39,6 @@ static const struct RHHRomHeader sRHHRomHeader =
|
|||
.numSpecies = NUM_SPECIES,
|
||||
.abilitiesCount = ABILITIES_COUNT,
|
||||
.abilities = gAbilities,
|
||||
.itemsCount = ITEMS_COUNT,
|
||||
.itemNameLength = ITEM_NAME_LENGTH,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue