diff options
Diffstat (limited to 'include/link_rfu.h')
-rw-r--r-- | include/link_rfu.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/link_rfu.h b/include/link_rfu.h index 86d55047d..aff5d93d0 100644 --- a/include/link_rfu.h +++ b/include/link_rfu.h @@ -17,6 +17,56 @@ #define RFU_COMMAND_0xee00 0xee00 #define RFU_COMMAND_0xed00 0xed00 +// RfuTgtData.gname is read as these structs. +struct GFtgtGnameSub +{ + u16 language:4; + u16 hasNews:1; + u16 hasCard:1; + u16 unk_00_6:1; + u16 isChampion:1; + u16 hasNationalDex:1; + u16 gameClear:1; + u16 version:4; + u16 unk_01_6:2; + u8 playerTrainerId[2]; +}; + +struct __attribute__((packed, aligned(2))) GFtgtGname +{ + struct GFtgtGnameSub unk_00; + u8 child_sprite_gender[RFU_CHILD_MAX]; // u8 sprite_idx:3; + // u8 gender:1; + // u8 unk_4:3 + // u8 active:1 + u16 species:10; + u16 type:6; + u8 activity:7; + u8 started:1; + u8 playerGender:1; + u8 level:7; + u8 padding; +}; // size: RFU_GNAME_SIZE + +struct Padded_U8 +{ + u8 value; +}; + +struct UnkLinkRfuStruct_02022B44 +{ + u8 fill_00[6]; + u16 unk_06; + u8 fill_08[6]; + vu8 unk_0e; + u8 unk_0f; + u8 fill_10[0x54]; + u16 unk_64; + u8 fill_66[0x1d]; + u8 unk_83; + u8 fill_84[0x58]; +}; + struct RfuBlockSend { /* 0x00 */ u16 next; |