FRDA:UpdateMii: Difference between revisions

DaniElectra (talk | contribs)
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x040C0800] |- | 1-24 | Mii Data |- | 25-32 | UTF-16 Mii nam..."
 
TimmSkiller (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Request=
=Request=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{IPC/RequestHeader|0x040C|32|0}}
!  Index Word
{{IPC/RequestEntryRange|24|Friend [[Mii#CFLStoreData|Mii Data]]}}
!  Description
{{IPC/RequestEntryRange|6|10-Character UTF-16 Screen Name (10 characters + null termination)}}
|-
{{IPC/RequestEntry|bool, profanity flag}}
| 0
{{IPC/RequestEntry|u8, [[Mii#Mii_format|Mii Character Set]]}}
| Header code [0x040C0800]
{{IPC/RequestEnd}}
|-
| 1-24
| [[Mii#Mii_format|Mii Data]]
|-
| 25-32
| UTF-16 Mii name
|}


=Response=
=Response=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestHeader|0x040C|1|0}}
!  Description
{{IPC/RequestEntry|Result code}}
|-
{{IPC/RequestEnd}}
| 0
| Header code
|-
| 1
| Result code
|}


=Description=
=Description=
This updates the Mii data on the friends list. Note: Mii Maker seems to be leaking memory on the Mii name, so any data after the NULL termination should be discarded.
Updates the Mii data of the personal Mii shown in the own friend card of the friends list.