9 #include "../sf/service.h"
73 u8 mii_wrinkles_style;
77 u8 mii_has_hair_flipped;
88 u8 mii_eyebrow_thickness;
98 u8 mii_mouth_thickness;
100 u8 mii_facial_hair_color;
102 u8 mii_mustache_style;
103 u8 mii_mustache_size;
105 u8 mii_glasses_style;
106 u8 mii_glasses_color;
Result miiDatabaseGetCount(MiiDatabase *db, s32 *out_count, MiiSourceFlag flag)
Returns number of miis in the database with the specified source flag.
MiiServiceType
Definition: mii.h:11
@ MiiServiceType_User
Initializes mii:u.
Definition: mii.h:13
@ MiiServiceType_System
Initializes mii:e.
Definition: mii.h:12
void miiDatabaseClose(MiiDatabase *db)
Closes a mii database.
Result miiDatabaseIsFull(MiiDatabase *db, bool *out_full)
Returns whether the mii database is full.
Result miiDatabaseIsUpdated(MiiDatabase *db, bool *out_updated, MiiSourceFlag flag)
Returns whether the mii database is updated.
MiiAge
Mii age.
Definition: mii.h:17
@ MiiAge_All
All of them.
Definition: mii.h:21
@ MiiAge_Normal
Normal.
Definition: mii.h:19
@ MiiAge_Old
Old.
Definition: mii.h:20
@ MiiAge_Young
Young.
Definition: mii.h:18
MiiFaceColor
Mii face color.
Definition: mii.h:32
@ MiiFaceColor_White
White.
Definition: mii.h:34
@ MiiFaceColor_Black
Black.
Definition: mii.h:33
@ MiiFaceColor_Asian
Asian.
Definition: mii.h:35
@ MiiFaceColor_All
All of them.
Definition: mii.h:36
MiiSpecialKeyCode
Definition: mii.h:47
@ MiiSpecialKeyCode_Special
Special miis.
Definition: mii.h:49
@ MiiSpecialKeyCode_Normal
Normal miis.
Definition: mii.h:48
Service * miiGetServiceSession(void)
Gets the Service object for the actual mii service session.
Result miiOpenDatabase(MiiDatabase *out, MiiSpecialKeyCode key_code)
Opens a mii database.
Result miiDatabaseGet1(MiiDatabase *db, MiiSourceFlag flag, MiiCharInfo *out_infos, s32 count, s32 *total_out)
Reads mii charinfo data from the specified source flag.
Result miiDatabaseBuildRandom(MiiDatabase *db, MiiAge age, MiiGender gender, MiiFaceColor face_color, MiiCharInfo *out_info)
Generates a random mii charinfo (doesn't register it in the console database).
MiiGender
Mii gender.
Definition: mii.h:25
@ MiiGender_Male
Male.
Definition: mii.h:26
@ MiiGender_All
Both of them.
Definition: mii.h:28
@ MiiGender_Female
Female.
Definition: mii.h:27
void miiExit(void)
Exit mii.
Result miiInitialize(MiiServiceType service_type)
Initialize mii.
MiiSourceFlag
Definition: mii.h:40
@ MiiSourceFlag_Database
Miis created by the user.
Definition: mii.h:41
@ MiiSourceFlag_Default
Default console miis.
Definition: mii.h:42
@ MiiSourceFlag_All
All of them.
Definition: mii.h:43
Service object structure.
Definition: service.h:14
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27