Jump to content

Nn::mii

From Mii Technical Wiki
Revision as of 13:58, 6 August 2025 by Arian (talk | contribs) (more detail)

nn::mii is a namespace in the NintendoSDK. This is the library used to render Mii characters and manage Mii data on the Nintendo Switch and Switch 2.

Usually, it is referred to as un-specific names as just "Face Library" or "Mii Face Library". File magic (e.g., NFDB, NFIF...) uses the "NF" prefix, which could stand for "(NintendoSDK, NX, Nintendo?) Face Library".

The name nn::mii is used for conciseness, but confusingly there is another nn::mii namespace within the 3DS SDK, although that one is private and only contains StoreData parsing logic copied from FFL. This is also why the SDK contains a typedef called nnmiiStoreData seen in certain games.

It is used Mii characters created using this library have extra features - namely, new colors, and new glasses types. They are sometimes referred to as 'Ver4'.

The library is split into subfolders/binaries:

  • libnn_mii_core
    • Contains Mii data parsing logic, color tables, eye/eyebrow rotation tables.
  • libnn_mii_draw
    • Contains resource parsing and rendering functionality using nn::gfx.
    • Also has shader and icon implementations (Icon, IconBody, VariableIconBody).
  • libnn_mii_database, libnn_mii_shell, libnn_mii_server
    • database = Database parsing used in server, shell = Database service clients?
    • server = Database service contained within service binaries.
  • libnn_mii_private
    • Found in libnn_nfcServer/libnn_nfcDriver.
    • Contains utilities for amiibo data.

Uses

  • MiiEditN (Mii editor applet, also called "Face Editor")
  • amiibo Settings
  • Mario Kart 8 Deluxe
  • Super Smash Bros. Ultimate
  • Mario Golf: Super Rush