11 #define MIISELECTOR_MAGIC 0x13DE28CF
14 #define MIISELECTOR_TITLE_LEN 64
17 #define MIISELECTOR_GUESTMII_SLOTS 6
20 #define MIISELECTOR_USERMII_SLOTS 100
52 #define MIISELECTOR_GUESTMII_NAME_LEN 12
void miiSelectorWhitelistUserMii(MiiSelectorConf *conf, u32 index)
Specifies which user Miis will be selectable.
void miiSelectorBlacklistGuestMii(MiiSelectorConf *conf, u32 index)
Specifies which guest Miis will be unselectable.
static void miiSelectorSetInitialIndex(MiiSelectorConf *conf, u32 index)
Specifies which Mii the cursor should start from.
Definition: miiselector.h:155
#define MIISELECTOR_TITLE_LEN
Maximum length of title to be displayed at the top of the Mii selector applet.
Definition: miiselector.h:14
void miiSelectorReturnGetName(const MiiSelectorReturn *returnbuf, char *out, size_t max_size)
Get Mii name.
void miiSelectorLaunch(const MiiSelectorConf *conf, MiiSelectorReturn *returnbuf)
Launch the Mii selector library applet.
#define MIISELECTOR_GUESTMII_SLOTS
Number of Guest Miis available for selection.
Definition: miiselector.h:17
void miiSelectorSetOptions(MiiSelectorConf *conf, u32 options)
Specifies which special options are enabled in the Mii selector.
void miiSelectorSetTitle(MiiSelectorConf *conf, const char *text)
Sets title of the Mii selector library applet.
#define MIISELECTOR_USERMII_SLOTS
Maximum number of user Miis available for selection.
Definition: miiselector.h:20
void miiSelectorBlacklistUserMii(MiiSelectorConf *conf, u32 index)
Specifies which user Miis will be selectable.
@ MIISELECTOR_GUESTSTART
Start on guest page.
Definition: miiselector.h:79
@ MIISELECTOR_TOP
Show AppletEd on top screen.
Definition: miiselector.h:78
@ MIISELECTOR_CANCEL
Show the cancel button.
Definition: miiselector.h:76
@ MIISELECTOR_GUESTS
Make Guets Miis selectable.
Definition: miiselector.h:77
void miiSelectorWhitelistGuestMii(MiiSelectorConf *conf, u32 index)
Specifies which guest Miis will be selectable.
void miiSelectorInit(MiiSelectorConf *conf)
Initialize Mii selector config.
void miiSelectorReturnGetAuthor(const MiiSelectorReturn *returnbuf, char *out, size_t max_size)
Get Mii Author.
bool miiSelectorChecksumIsValid(const MiiSelectorReturn *returnbuf)
Verifies that the Mii data returned from the applet matches its checksum.
#define MIISELECTOR_GUESTMII_NAME_LEN
Maximum length of the localized name of a Guest Mii.
Definition: miiselector.h:52
Shared Mii struct.
Definition: mii.h:13
Parameter structure passed to AppletEd.
Definition: miiselector.h:24
u8 enable_selecting_guests
Makes Guets Miis selectable if nonzero.
Definition: miiselector.h:26
u8 show_guest_page
If nonzero, the applet shows a page with Guest Miis on launch.
Definition: miiselector.h:33
u32 magic
Will be set to MIISELECTOR_MAGIC before launching the applet.
Definition: miiselector.h:47
u8 enable_cancel_button
Enables canceling of selection if nonzero.
Definition: miiselector.h:25
u8 show_on_top_screen
Shows applet on top screen if nonzero, otherwise show it on the bottom screen.
Definition: miiselector.h:27
u32 initial_index
Index of the initially selected Mii.
Definition: miiselector.h:36
Structure written by AppletEd.
Definition: miiselector.h:56
u32 no_mii_selected
0 if a Mii was selected, 1 if the selection was canceled.
Definition: miiselector.h:57
u32 guest_mii_was_selected
1 if a Guest Mii was selected, 0 otherwise.
Definition: miiselector.h:59
MiiData mii
Data of selected Mii.
Definition: miiselector.h:62
u16 checksum
Checksum of the returned Mii data.
Definition: miiselector.h:64
u32 guest_mii_index
Index of the selected Guest Mii, 0xFFFFFFFF if no guest was selected.
Definition: miiselector.h:60
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23