ldn: Updated structs.

This commit is contained in:
yellows8 2020-05-18 14:57:22 -04:00
parent 55c0205de0
commit 2f25c57d0e
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ typedef struct {
u16 sec_type; ///< LdnSecurityConfig::type u16 sec_type; ///< LdnSecurityConfig::type
u8 unk_x62; ///< Unknown u8 unk_x62; ///< Unknown
u8 pad_x63[0x3]; ///< Padding u8 pad_x63[0x3]; ///< Padding
s8 unk_x66; ///< Unknown s8 participant_max; ///< Maximum participants, for nodes.
u8 participant_num; ///< ParticipantNum, number of set entries in nodes. If unk_x4B is not 0x2, ParticipantNum should be handled as if it's 0. u8 participant_num; ///< ParticipantNum, number of set entries in nodes. If unk_x4B is not 0x2, ParticipantNum should be handled as if it's 0.
LdnNodeInfo nodes[8]; ///< Array of \ref LdnNodeInfo, starting with the AccessPoint node. LdnNodeInfo nodes[8]; ///< Array of \ref LdnNodeInfo, starting with the AccessPoint node.
u8 reserved_x268[0x2]; ///< Reserved u8 reserved_x268[0x2]; ///< Reserved
@ -180,7 +180,7 @@ typedef struct {
u16 unk_xA; ///< LdnNetworkInfo::unk_xA u16 unk_xA; ///< LdnNetworkInfo::unk_xA
u8 reserved_xC[4]; ///< Cleared to zero for the tmp struct. u8 reserved_xC[4]; ///< Cleared to zero for the tmp struct.
s16 network_channel; ///< LdnNetworkInfo::network_channel. Channel, can be zero. Overwritten internally by \ref ldnCreateNetwork. s16 network_channel; ///< LdnNetworkInfo::network_channel. Channel, can be zero. Overwritten internally by \ref ldnCreateNetwork.
s8 unk_x12; ///< LdnNetworkInfo::unk_x66. \ref ldnCreateNetwork / \ref ldnCreateNetworkPrivate: Must be 0x1-0x8. s8 participant_max; ///< LdnNetworkInfo::participant_max. \ref ldnCreateNetwork / \ref ldnCreateNetworkPrivate: Must be 0x1-0x8.
u8 reserved_x13; ///< Cleared to zero for the tmp struct. u8 reserved_x13; ///< Cleared to zero for the tmp struct.
s16 local_communication_version; ///< LdnNodeInfo::local_communication_version, for the first entry in LdnNetworkInfo::nodes. Must not be negative. s16 local_communication_version; ///< LdnNodeInfo::local_communication_version, for the first entry in LdnNetworkInfo::nodes. Must not be negative.
u8 reserved_x16[0xA]; ///< Cleared to zero for the tmp struct. u8 reserved_x16[0xA]; ///< Cleared to zero for the tmp struct.

View File

@ -222,7 +222,7 @@ static void _ldnCopyNetworkConfig(const LdnNetworkConfig *in, LdnNetworkConfig *
out->local_communication_id = in->local_communication_id; out->local_communication_id = in->local_communication_id;
out->unk_xA = in->unk_xA; out->unk_xA = in->unk_xA;
out->network_channel = in->network_channel; out->network_channel = in->network_channel;
out->unk_x12 = in->unk_x12; out->participant_max = in->participant_max;
out->local_communication_version = in->local_communication_version; out->local_communication_version = in->local_communication_version;
} }