# Mandarine

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/mandarine/

Mandarine emulates Nintendo 3DS. It reads 7 files, none of them required: it starts games without them.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Community fork |
| Source | [https://github.com/ptyfyre/mandarine-neo](https://github.com/ptyfyre/mandarine-neo) |
| Version | r1.3.0-6-g7f8ec96, 6 commits after tag [`r1.3.0`](https://github.com/ptyfyre/mandarine-neo/tree/r1.3.0) |
| Revision | [ptyfyre/mandarine-neo@7f8ec960b618](https://github.com/ptyfyre/mandarine-neo/commit/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3) |
| Run by | [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/) |
| Profiled | 2026-08-08 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/mandarine.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/mandarine.json) |
| Cores | mandarine, mandarine-qt |
| Systems | [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/) |

**Install this emulator's files**

With RetroBat: the installer finds RetroBat and its BIOS folder, then downloads only the files Mandarine reads there and checks each one.

**Windows**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator mandarine
```

**Technical notes**

Citra fork, renamed Mandarine-Neo at release 1.3.0. External files live in sysdata/ and nand/ under the user directory: user/ next to the executable when that directory exists, otherwise Mandarine on Windows and macOS and mandarine-emu on Linux, with Citra and citra-emu kept as legacy locations. ref: [`src/common/common_paths.h:16-70`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/common_paths.h#L16-L70), [`src/common/file_util.cpp:770-839`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/file_util.cpp#L770-L839)

InitKeys reads boot9.bin then aes_keys.txt. Encrypted content needs one of the two, while a ROM without crypto reads neither. ref: [`src/core/hw/aes/key.cpp:315-324`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hw/aes/key.cpp#L315-L324), [`src/core/file_sys/ncch_container.cpp:200-210`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/ncch_container.cpp#L200-L210)

Failure to derive a key or to find a seed marks the content undecryptable and loading stops with ErrorEncrypted. ref: [`src/core/file_sys/ncch_container.cpp:219-223`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/ncch_container.cpp#L219-L223), [`src/core/file_sys/ncch_container.cpp:236-280`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/ncch_container.cpp#L236-L280), [`src/core/file_sys/ncch_container.cpp:347-349`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/ncch_container.cpp#L347-L349)

System archives resolve to the NAND title tree. Shared font, Mii data, country list and bad word list fall back to open-source replacements built into the binary when the title is absent. ref: [`src/core/file_sys/archive_ncch.cpp:126-179`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/archive_ncch.cpp#L126-L179), externals/open_source_archives/Readme.md

The embedded shared font only answers title low ID 0x00014002. CHN, KOR and TWN resolve to 0x00014102, 0x00014202 and 0x00014302, which fall through to shared_font.bin and then to ErrorSystemFiles, reported as recoverable. ref: [`src/core/hle/service/apt/apt.cpp:195-213`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/apt/apt.cpp#L195-L213), [`src/core/hle/service/apt/apt.cpp:276-291`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/apt/apt.cpp#L276-L291), [`src/mandarine_qt/main.cpp:3209-3215`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/mandarine_qt/main.cpp#L3209-L3215)

ClCertA is read from NAND title 0x0004001B00010002 and its ctr-common-1-cert.bin and ctr-common-1-key.bin members are decrypted with the KeySlot 0x0D normal key. Both the title and the key slot are needed for authenticated HTTPS. ref: [`src/core/hle/service/http/http_c.cpp:1963-2036`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/http/http_c.cpp#L1963-L2036)

System titles are downloaded and installed in-app from the Nintendo CDN, so the NAND title tree is not user-supplied. ref: [`src/mandarine_qt/configuration/configure_system.cpp:672-678`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/mandarine_qt/configuration/configure_system.cpp#L672-L678), [`src/core/hle/service/am/am.cpp:536`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/am/am.cpp#L536), [`src/core/nus_download.cpp:12-13`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/nus_download.cpp#L12-L13)

DumpKeys.gm9, a GodMode9 script producing aes_keys.txt and seeddb.bin, ships in the tree and documents sysdata/ as their destination. ref: dist/dumpkeys/README.md, dist/dumpkeys/DumpKeys.gm9

The plugin loader scans sdmc/luma/plugins/<title id>/ for any .3gx file and falls back to sdmc/luma/plugins/default.3gx. Plugins carry no fixed identity. ref: [`src/core/hle/service/plgldr/plgldr.cpp:112-146`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/plgldr/plgldr.cpp#L112-L146)

mcu.dat holds per-installation MCU state that the emulator writes itself when the file is absent or carries the wrong magic. ref: [`src/core/hle/service/cfg/cfg.cpp:734-756`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.cpp#L734-L756), [`src/core/hle/service/cfg/cfg.h:425-439`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.h#L425-L439)

sector0x96.bin is defined but read by no code path. ref: [`src/common/common_paths.h:70`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/common_paths.h#L70)

## Files

**7 files**: 0 required, 7 optional. 1 has an HLE fallback.

In this collection: 7 in repo and 0 missing.

## Optional

| File | Status |
|---|---|
| ** ### `boot9.bin` ** - Path: `sysdata/boot9.bin`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- AES key section read at offset 55760, RSA modulus and exponent at 0xB3E0 and 0xB4E0 - Size: 64.0 KB (65,536 bytes)- Collection copy: [`bios/Nintendo/3DS/boot9.bin`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-5a3d3d6df474) **Validation and source** - Validation: size- Source: [`src/core/hw/aes/key.cpp:137-206`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hw/aes/key.cpp#L137-L206), [`src/core/hw/rsa/rsa.cpp:49-80`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hw/rsa/rsa.cpp#L49-L80), [`src/common/common_paths.h:69`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/common_paths.h#L69) | in repo |
| ** ### `aes_keys.txt` ** - Path: `sysdata/aes_keys.txt`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- key slots, common keys, DLP and NFC key Ys and NFC secrets, one per line - Collection copy: [`bios/Nintendo/3DS/aes_keys.txt`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-29556640b022)- Platforms: `aes_keys.txt`: [BizHawk](https://abdess.github.io/retrobios/platforms/bizhawk/#nintendo-3ds), [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/#nintendo-3ds). `bios/aes_keys.txt`: [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#nintendo-3ds) **Source** - Source: [`src/core/hw/aes/key.cpp:208-311`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hw/aes/key.cpp#L208-L311), [`src/common/common_paths.h:68`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/common_paths.h#L68) | in repo |
| ** ### `seeddb.bin` ** - Path: `sysdata/seeddb.bin`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- game seed database for 9.6+ titles. An empty database is written when the file is absent - Collection copy: [`bios/Nintendo/3DS/Citra/sysdata/seeddb.bin`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-9e2c00699776)- Platforms: `seeddb.bin`: [BizHawk](https://abdess.github.io/retrobios/platforms/bizhawk/#nintendo-3ds) **Source** - Source: [`src/core/file_sys/seed_db.cpp:12-58`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/file_sys/seed_db.cpp#L12-L58) | in repo |
| ** ### `shared_font.bin` ** - Path: `sysdata/shared_font.bin`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- legacy path, tried after the shared font system archive. It is a decompressed BCFNT with the 0x80 byte APT header - Collection copy: [`bios/Nintendo/3DS/Citra/sysdata/shared_font.bin`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-60022d6d026c) **Source** - Source: [`src/core/hle/service/apt/apt.cpp:254-270`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/apt/apt.cpp#L254-L270), [`src/common/common_paths.h:67`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/common/common_paths.h#L67) | in repoHLE fallback |
| ** ### `CTCert.bin` ** - Path: `sysdata/CTCert.bin`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- console client certificate. Signature type must be 0x010005 and the issuer one of the two Nintendo CA G3 strings. The certificate here is assembled from a console OTP: signature and expiry read at 0x44 and 0x20, public key derived from the private key at 0x24 over sect233r1, and the whole body checked against Nintendo's root public key - Size: 384 B- Collection copy: [`bios/Other/lime3ds/sysdata/CTCert.bin`](https://abdess.github.io/retrobios/systems/other/#sha1-92f45bb79027) **Validation and source** - Validation: size- Source: [`src/core/hle/service/am/am.cpp:2427-2454`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/am/am.cpp#L2427-L2454), [`src/core/hle/service/am/am.cpp:83-93`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/am/am.cpp#L83-L93), [`src/core/hle/service/am/am.h:95`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/am/am.h#L95) | in repo |
| ** ### `SecureInfo_A` ** - Path: `nand/rw/sys/SecureInfo_A`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- console region and serial number, loaded on a size check alone, and paired with LocalFriendCodeSeed_B - Size: 273 B- Collection copy: [`bios/Nintendo/3DS/Citra/nand/rw/sys/SecureInfo_A`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-ff52883a0f61) **Validation and source** - Validation: size- Source: [`src/core/hle/service/cfg/cfg.cpp:608-610`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.cpp#L608-L610), [`src/core/hle/service/cfg/cfg.cpp:689-709`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.cpp#L689-L709), [`src/core/hle/service/cfg/cfg.h:180-186`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.h#L180-L186) | in repo |
| ** ### `LocalFriendCodeSeed_B` ** - Path: `nand/rw/sys/LocalFriendCodeSeed_B`- System: [Nintendo 3DS](https://abdess.github.io/retrobios/systems/nintendo-3ds/)- friend code generation seed, loaded on a size check alone, and paired with SecureInfo_A - Size: 272 B- Collection copy: [`bios/Nintendo/3DS/Citra/nand/rw/sys/LocalFriendCodeSeed_B`](https://abdess.github.io/retrobios/systems/nintendo-3ds/#sha1-3011ae55c3dc) **Validation and source** - Validation: size- Source: [`src/core/hle/service/cfg/cfg.cpp:604-606`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.cpp#L604-L606), [`src/core/hle/service/cfg/cfg.cpp:711-732`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.cpp#L711-L732), [`src/core/hle/service/cfg/cfg.h:188-193`](https://github.com/ptyfyre/mandarine-neo/blob/7f8ec960b6183be4350bca099d23ddd9fc7bcaa3/src/core/hle/service/cfg/cfg.h#L188-L193) | in repo |

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
