Jump to content

Nn::mii::CharInfo: Difference between revisions

From Mii Technical Wiki
No edit summary
No edit summary
Line 1: Line 1:
This is the [[Mii Character Data|Mii data format]] used on [[nn::mii|Nintendo Switch]] and later.
This is the [[Mii Character Data|Mii data format]] used on [[nn::mii|Nintendo Switch]] and later.
 
== Struct Pattern ==
 
This sample is in the ImHex Pattern<ref>https://imhex.werwolv.net/</ref> format.<syntaxhighlight lang="c">
 
== ImHex Pattern ==
<syntaxhighlight lang="c">
struct Mii {
struct Mii {
     u8 create_id[16];
     u8 create_id[16];

Revision as of 19:33, 23 September 2025

This is the Mii data format used on Nintendo Switch and later.

Struct Pattern

This sample is in the ImHex Pattern[1] format.

struct Mii {
    u8 create_id[16];
    u16 nick[11];
    u8 font;
    u8 col;
    u8 gend;
    u8 height;
    u8 build;
    u8 type; // Special or not
    u8 region_move;
    u8 faceline_type;
    u8 faceline_color;
    u8 faceline_wrinkle;
    u8 faceline_make;
    u8 hair_type;
    u8 hair_color;
    u8 hair_flip;
    u8 eye_type;
    u8 eye_color;
    u8 eye_scale;
    u8 eye_aspect;
    u8 eye_rotate;
    u8 eye_x;
    u8 eye_y;
    u8 eyebrow_type;
    u8 eyebrow_color;
    u8 eyebrow_scale;
    u8 eyebrow_aspect;
    u8 eyebrow_rotate;
    u8 eyebrow_x;
    u8 eyebrow_y;
    u8 nose_type;
    u8 nose_scale;
    u8 nose_y;
    u8 mouth_type;
    u8 mouth_color;
    u8 mouth_scale;
    u8 mouth_aspect;
    u8 mouth_y;
    u8 beard_color;
    u8 beard_type;
    u8 mustache_type;
    u8 mustache_scale;
    u8 mustache_y;
    u8 glass_type;
    u8 glass_color;
    u8 glass_scale;
    u8 glass_y;
    u8 mole_type;
    u8 mole_scale;
    u8 mole_x;
    u8 mole_y;
    u8 reserved; /* always zero */
};

Mii mii_at_0x00 @ 0x00;

In codebases

  1. Vee Face Library (Unofficial)

...