<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Inflatable+Man</id>
	<title>3dbrew - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Inflatable+Man"/>
	<link rel="alternate" type="text/html" href="https://www.3dbrew.org/wiki/Special:Contributions/Inflatable_Man"/>
	<updated>2026-04-15T20:31:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Mii_Selector&amp;diff=21528</id>
		<title>Mii Selector</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Mii_Selector&amp;diff=21528"/>
		<updated>2021-06-27T00:03:31Z</updated>

		<summary type="html">&lt;p&gt;Inflatable Man: Fix typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the library applet used to select a [[Mii]]. Internally it is called&lt;br /&gt;
&#039;&#039;appletEd&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=Launching the applet=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;appletEd&#039;&#039; can be launched by calling [[APT:StartLibraryApplet]] with&lt;br /&gt;
[[NS_and_APT_Services#AppIDs|AppID]] 0x402.  It expects a pointer to a&lt;br /&gt;
[[#Parameter Buffer|buffer]] of 0x104 bytes to be passed as parameter. It does&lt;br /&gt;
not use other resources, so an invalid [[SVC#typedef_Handle|handle]] of value 0&lt;br /&gt;
is expected.&lt;br /&gt;
&lt;br /&gt;
After returning from the applet, [[#Return Buffer|part of the parameter buffer]]&lt;br /&gt;
is filled with the data of any selected Mii and some other related values.&lt;br /&gt;
&lt;br /&gt;
=Parameter Buffer=&lt;br /&gt;
&lt;br /&gt;
The applet can be configured to work in a flexible way by setting values in a&lt;br /&gt;
0x104 byte long buffer that is passed when launching it.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Index Byte&lt;br /&gt;
! Size&lt;br /&gt;
! Type&lt;br /&gt;
! Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x000&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| Cancel button flag&lt;br /&gt;
| If set to a nonzero value, a Button labeled &#039;&#039;(B) Cancel&#039;&#039; is displayed at the bottom of the applet.&lt;br /&gt;
This allows to cancel the selection of a Mii.&lt;br /&gt;
|-&lt;br /&gt;
| 0x001&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| Enable Guest Mii selection flag&lt;br /&gt;
| If set to a nonzero value, 6 predefined &#039;&#039;Guest Miis&#039;&#039; can be selected on their own page.&lt;br /&gt;
|-&lt;br /&gt;
| 0x002&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| Show on top screen flag&lt;br /&gt;
| If set to a nonzero value, the applet is displayed at the top screen instead of the touchscreen.&lt;br /&gt;
|-&lt;br /&gt;
| 0x003&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;code&amp;gt;5*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| &#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
| May be padding to align the following data to a 8-byte boundary.&lt;br /&gt;
|-&lt;br /&gt;
| 0x008&lt;br /&gt;
| 128 (0x80)&lt;br /&gt;
| &amp;lt;code&amp;gt;64*u16&amp;lt;/code&amp;gt;&lt;br /&gt;
| Title&lt;br /&gt;
| This is a UTF16-LE[https://en.wikipedia.org/wiki/UTF-16]-encoded, zero-terminated string that is displayed at the top of the applet.&lt;br /&gt;
If the first character is set to &amp;lt;code&amp;gt;&#039;\x0000&#039;&amp;lt;/code&amp;gt; (null-terminator), a default title is displayed.&lt;br /&gt;
|-&lt;br /&gt;
| 0x088&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;4*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| &#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
| May be padding.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08C&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| Show Guest Miis flag&lt;br /&gt;
| If set to a nonzero value, the applet initially shows the page where the Guest Miis are located.&lt;br /&gt;
Otherwise, it displays the user-created/-imported Miis after launch.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08D&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;code&amp;gt;3*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| &#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
| May be padding to align the following data to a 8-byte boundary.&lt;br /&gt;
|-&lt;br /&gt;
| 0x090&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Initially selected Mii index&lt;br /&gt;
| If set to a value &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;, the cursor is initially placed on the &amp;lt;code&amp;gt;i+1&amp;lt;/code&amp;gt;st Mii in the [[Mii#Mii_Database|Mii database]].&lt;br /&gt;
If &#039;&#039;Show Guest Miis&#039;&#039; is set and &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is in [0,...,5], the cursor is placed on the &amp;lt;code&amp;gt;i+1&amp;lt;/code&amp;gt;st Guest Mii.  In any other case a user&#039;s personal Mii is selected.&lt;br /&gt;
|-&lt;br /&gt;
| 0x094&lt;br /&gt;
| 6&lt;br /&gt;
| &amp;lt;code&amp;gt;6*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| Guest Mii whitelist&lt;br /&gt;
| For each nonzero byte in this array, the corresponding Guest Mii is made selectable.&lt;br /&gt;
Otherwise they are greyed out and can&#039;t be selected.&lt;br /&gt;
|-&lt;br /&gt;
| 0x09A&lt;br /&gt;
| 100 (0x64)&lt;br /&gt;
| &amp;lt;code&amp;gt;100*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| User Mii whitelist&lt;br /&gt;
| Like the above, only for the Miis found in the system&#039;s database.&lt;br /&gt;
A Mii&#039;s index in this array corresponds to its index in the system database.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0FE&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u16&amp;lt;/code&amp;gt;&lt;br /&gt;
| &#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
| May be padding to align the following data to a 8-byte boundary.&lt;br /&gt;
|-&lt;br /&gt;
| 0x100&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Magic value &amp;lt;code&amp;gt;0x13DE28CF&amp;lt;/code&amp;gt; (little Endian)&lt;br /&gt;
| Without this value, the applet refuses to display any Miis.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Return Buffer=&lt;br /&gt;
&lt;br /&gt;
After selecting a Mii or canceling the operation, &#039;&#039;appletEd&#039;&#039; writes 0x84 byte&lt;br /&gt;
to the parameter buffer it was passed, starting at offset 0.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Index Byte&lt;br /&gt;
! Size&lt;br /&gt;
! Type&lt;br /&gt;
! Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Return code&lt;br /&gt;
| Set to 1 if the action was canceled, 0 if a Mii was selected.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Guest Mii selected flag&lt;br /&gt;
| Set to 1 if a Guest Mii was selected, 0 if it was a user Mii.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Selected Guest Mii index&lt;br /&gt;
| If a Guest Mii was selected, this is set to the value corresponding to its index (i.e. 3 for Guest D).&lt;br /&gt;
Set to 0xFFFFFFFF (-1) if a user Mii was selected.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C&lt;br /&gt;
| 92 (0x5c)&lt;br /&gt;
| &amp;lt;code&amp;gt;1*struct mii&amp;lt;/code&amp;gt;&lt;br /&gt;
| Selected Mii data&lt;br /&gt;
| If a Mii was selected, its data is copied here.&lt;br /&gt;
The same [[Mii#Mii format|format]] as in the system&#039;s Mii database is used.&lt;br /&gt;
|-&lt;br /&gt;
| 0x68&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;code&amp;gt;2*u8&amp;lt;/code&amp;gt;&lt;br /&gt;
| &#039;&#039;Unknown&#039;&#039;&lt;br /&gt;
| -&lt;br /&gt;
|-&lt;br /&gt;
| 0x6a&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;code&amp;gt;1*u16&amp;lt;/code&amp;gt;&lt;br /&gt;
| Mii data checksum (?)&lt;br /&gt;
| This may be a [[Mii#Checksum|checksum]] of the returned Mii data.&lt;br /&gt;
|-&lt;br /&gt;
| 0x6c&lt;br /&gt;
| 24&lt;br /&gt;
| &amp;lt;code&amp;gt;12*u16&amp;lt;/code&amp;gt;&lt;br /&gt;
| Guest Mii name&lt;br /&gt;
| The localized name as a UTF16-LE string of a Guest Mii if one was selected, zeroed otherwise.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Inflatable Man</name></author>
	</entry>
</feed>