wut  v1.7.0
Wii U Toolchain
amiibo_settings_cpp.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <nn/nfp/nfp_cpp.h>
4 #include <sysapp/args.h>
5 
13 #ifdef __cplusplus
14 
15 namespace nn {
16 
17 namespace nfp {
18 
19 enum class AmiiboSettingsMode : uint32_t
20 {
22  Register = 0,
24  DeleteGameData = 1,
26  Restore = 2,
27 };
28 WUT_CHECK_SIZE(AmiiboSettingsMode, 0x4);
29 
31 {
38  uint8_t padding[3];
42  uint8_t reserved[0x20];
43 };
44 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x0, mode);
45 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x4, tag_info);
46 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x58, is_registered);
47 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x59, padding);
48 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x5C, register_info);
49 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x104, common_info);
50 WUT_CHECK_OFFSET(AmiiboSettingsArgsIn, 0x144, reserved);
51 WUT_CHECK_SIZE(AmiiboSettingsArgsIn, 0x164);
52 
54 {
57 };
58 WUT_CHECK_OFFSET(AmiiboSettingsArgs, 0x0, standardArgs);
59 WUT_CHECK_OFFSET(AmiiboSettingsArgs, 0x10, argsIn);
60 WUT_CHECK_SIZE(AmiiboSettingsArgs, 0x174);
61 
63 {
65  int32_t result;
70  uint8_t reserved[0x20];
71 };
72 WUT_CHECK_OFFSET(AmiiboSettingsResult, 0x0, result);
73 WUT_CHECK_OFFSET(AmiiboSettingsResult, 0x4, tag_info);
74 WUT_CHECK_OFFSET(AmiiboSettingsResult, 0x58, register_info);
75 WUT_CHECK_OFFSET(AmiiboSettingsResult, 0x100, common_info);
76 WUT_CHECK_OFFSET(AmiiboSettingsResult, 0x140, reserved);
77 WUT_CHECK_SIZE(AmiiboSettingsResult, 0x160);
78 
87  asm("InitializeAmiiboSettingsArgsIn__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsArgsIn");
88 
102 SwitchToAmiiboSettings(const AmiiboSettingsArgsIn &args, const char *standardArg, uint32_t standardArgSize)
103  asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsInPCcUi");
104 
113  asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsIn");
114 
126  asm("GetAmiiboSettingsResult__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsResultRC15SysArgDataBlock");
127 
136  asm("ReturnToCallerWithAmiiboSettingsResult__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsResult");
137 
146  asm("GetAmiiboSettingsArgs__Q2_2nn3nfpFPQ3_2nn3nfp18AmiiboSettingsArgs");
147 
148 } //namespace nfp
149 
150 } //namespace nn
151 
152 #endif
153 
Result value type used by nn libraries.
Definition: result.h:68
AmiiboSettingsMode mode
The mode in which the amiibo settings should be opened.
uint8_t padding[3]
padding bytes, must be set to 0
nn::Result InitializeAmiiboSettingsArgsIn(AmiiboSettingsArgsIn *args) asm("InitializeAmiiboSettingsArgsIn__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsArgsIn")
Initializes a AmiiboSettingsArgsIn struct.
nn::Result GetAmiiboSettingsArgs(AmiiboSettingsArgs *outArgs) asm("GetAmiiboSettingsArgs__Q2_2nn3nfpFPQ3_2nn3nfp18AmiiboSettingsArgs")
Used by Amiibo Settings internally to get the arguments of the caller.
int32_t result
Result (0 on success)
nn::Result ReturnToCallerWithAmiiboSettingsResult(const AmiiboSettingsResult &result) asm("ReturnToCallerWithAmiiboSettingsResult__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsResult")
Used by Amiibo Settings internally to return to the caller.
bool is_registered
Set to true if the tag is already registered.
@ Register
Open the Mii and Name register menu.
@ Restore
Open the "Restore" menu.
@ DeleteGameData
Open the "Delete Game Data" menu.
nn::Result GetAmiiboSettingsResult(AmiiboSettingsResult *outResult, const SYSArgDataBlock &block) asm("GetAmiiboSettingsResult__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsResultRC15SysArgDataBlock")
Gets the amiibo settings result from a SYSArgs data block.
uint8_t reserved[0x20]
reserved bytes, must be set to 0
nn::Result SwitchToAmiiboSettings(const AmiiboSettingsArgsIn &args, const char *standardArg, uint32_t standardArgSize) asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsInPCcUi")
Switches to the amiibo settings applet.
Definition: ac_cpp.h:15