wut  v1.5.0
Wii U Toolchain
switch.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "args.h"
4 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
25 typedef struct SysAppEShopArgs SysAppEShopArgs;
27 
29 {
31  uint64_t titleId;
32 };
33 WUT_CHECK_OFFSET(SysAppEManualArgs, 0x0, stdArgs);
34 WUT_CHECK_OFFSET(SysAppEManualArgs, 0x8, titleId);
35 WUT_CHECK_SIZE(SysAppEManualArgs, 0x10);
36 
38 {
40  char *query;
41  uint32_t querySize;
42 };
43 WUT_CHECK_OFFSET(SysAppEShopArgs, 0x0, stdArgs);
44 WUT_CHECK_OFFSET(SysAppEShopArgs, 0x8, query);
45 WUT_CHECK_OFFSET(SysAppEShopArgs, 0xc, querySize);
46 WUT_CHECK_SIZE(SysAppEShopArgs, 0x10);
47 
49 {
51  char *url;
52  uint32_t urlSize;
53 };
54 WUT_CHECK_OFFSET(SysAppBrowserArgs, 0x0, stdArgs);
55 WUT_CHECK_OFFSET(SysAppBrowserArgs, 0x8, url);
56 WUT_CHECK_OFFSET(SysAppBrowserArgs, 0xC, urlSize);
57 WUT_CHECK_SIZE(SysAppBrowserArgs, 0x10);
58 
60 {
62  char *cbUrl;
63  uint32_t cbUrlSize;
65 };
66 WUT_CHECK_OFFSET(SysAppBrowserArgsWithCallback, 0x0, browserArgs);
67 WUT_CHECK_OFFSET(SysAppBrowserArgsWithCallback, 0x10, cbUrl);
68 WUT_CHECK_OFFSET(SysAppBrowserArgsWithCallback, 0x14, cbUrlSize);
69 WUT_CHECK_OFFSET(SysAppBrowserArgsWithCallback, 0x18, hbmDisable);
70 WUT_CHECK_SIZE(SysAppBrowserArgsWithCallback, 0x1C);
71 
72 typedef enum SysAppPFID
73 {
89 
98 int32_t
100 
108 int32_t
110 
111 int32_t
113 
114 int32_t
116 
124 int32_t
126 
127 int32_t
129 
130 int32_t
132 
140 int32_t
142 
143 int32_t
145 
154 int32_t
156 
157 int32_t
159 
160 int32_t
162 
163 int32_t
165 
166 int32_t
168 
172 int32_t
174 
175 int32_t
177 
178 int32_t
180 
181 #ifdef __cplusplus
182 }
183 #endif
184 
uint64_t titleId
Definition: switch.h:31
SYSStandardArgsIn stdArgs
Definition: switch.h:30
uint32_t urlSize
Definition: switch.h:52
SysAppBrowserArgs browserArgs
Definition: switch.h:61
char * url
Definition: switch.h:51
uint32_t querySize
Definition: switch.h:41
char * query
Definition: switch.h:40
int32_t SYSSwitchToBrowser(SysAppBrowserArgs *)
int32_t _SYSSwitchTo(SysAppPFID pfid)
int32_t _SYSSwitchToHBMWithMode(int32_t)
int32_t SYSSwitchToEShopTicketList(SYSStandardArgsIn *)
int32_t SYSSwitchTo(SysAppPFID pfid)
Calls __OSClearCopyData then _SYSSwitchTo.
SysAppPFID
Definition: switch.h:73
int32_t SYSSwitchToEShop(SysAppEShopArgs *)
Initiate a switch to the Nintendo eShop application.
int32_t _SYSSwitchToOverlayFromHBM(int32_t)
int32_t _SYSDirectlySwitchTo(SysAppPFID pfid)
int32_t _SYSSwitchToMainApp()
int32_t SYSSwitchToSyncControllerOnHBM()
Initiate a switch into the controller sync menu.
int32_t _SYSSwitchToEManual(SysAppEManualArgs *)
int32_t SYSSwitchToEManual()
Initiate a switch to the current title's assosciated e-manual.
int32_t _SYSSwitchToEShopFromHBM(SysAppEShopArgs *)
int32_t _SYSSwitchToEManualFromHBM(SysAppEManualArgs *)
int32_t _SYSSwitchToBrowserForCallbackURLFromHBM(SysAppBrowserArgsWithCallback *)
int32_t SYSSwitchToBrowserForViewer(SysAppBrowserArgs *)
Initiates a switch to the Internet Browser application, with the given arguments in the form of a Sys...
int32_t SYSSwitchToBrowserForCallbackURL(SysAppBrowserArgsWithCallback *)
@ SYSAPP_PFID_CABINETU
Definition: switch.h:86
@ SYSAPP_PFID_WII_U_MENU
Definition: switch.h:74
@ SYSAPP_PFID_MINI_MIIVERSE
Definition: switch.h:78
@ SYSAPP_PFID_ESHOP
Definition: switch.h:81
@ SYSAPP_PFID_DOWNLOAD_MANAGEMENT
Definition: switch.h:83
@ SYSAPP_PFID_DOWNLOAD_GAME
Definition: switch.h:84
@ SYSAPP_PFID_MINTU
Definition: switch.h:85
@ SYSAPP_PFID_FRIENDLIST
Definition: switch.h:82
@ SYSAPP_PFID_EMANUAL
Definition: switch.h:76
@ SYSAPP_PFID_TEST_OVERLAY
Definition: switch.h:87
@ SYSAPP_PFID_BROWSER
Definition: switch.h:79
@ SYSAPP_PFID_MIIVERSE
Definition: switch.h:80
@ SYSAPP_PFID_HOME_MENU
Definition: switch.h:77
@ SYSAPP_PFID_TVII
Definition: switch.h:75
int32_t BOOL
Definition: wut_types.h:7