wut  v1.7.0
Wii U Toolchain
ScrambledLocalFriendCode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wut.h>
4 #include <nn/result.h>
5 
6 #ifdef __cplusplus
7 
8 namespace nn {
9 
10 namespace uds {
11 
12 namespace Cafe {
14  struct WUT_PACKED ScrambledLocalFriendCode {
16  uint64_t localFriendCode;
18  uint16_t networkNodeId;
20  uint16_t xorKey;
21  };
22  WUT_CHECK_SIZE(ScrambledLocalFriendCode, 0x0C);
23  WUT_CHECK_OFFSET(ScrambledLocalFriendCode, 0x00, localFriendCode);
24  WUT_CHECK_OFFSET(ScrambledLocalFriendCode, 0x08, networkNodeId);
25  WUT_CHECK_OFFSET(ScrambledLocalFriendCode, 0x0A, xorKey);
26 } // namespace Cafe
27 
28 } // namespace uds
29 
30 } // namespace nn
31 
32 #endif
uint16_t networkNodeId
The node ID that the local friend code belongs to.
uint64_t localFriendCode
The scrambled local friend code. On the Wii U this is always descrambled.
uint16_t xorKey
The XOR key used for descrambling the local friend code.
Stores data about the scrambled local friend code of a node.
Definition: ac_cpp.h:15