Files
libretro/emulators/suyu.yml
T
Abdessamad Derraz e1cbf79415 feat: collect the Switch firmware NCAs
The yuzu family reads its firmware from nand/system/Contents/registered/,
which EmuDeck links from bios/<emulator>/firmware and RetroBat places in
the emulator folder. The 229 NCAs of the held firmware zip are now kept
loose under that tail, so the directory entries resolve and the packs
and install lists carry them. Each NCA is named after the first 16 bytes
of its SHA-256, the comparison the firmware install runs, and a test
holds every committed NCA to it. The NCAs are committed, so the entries
no longer claim release storage.
2026-11-20 05:36:15 +01:00

99 lines
4.8 KiB
YAML

emulator: Suyu
type: standalone
core_classification: community_fork
source: "https://github.com/suyu-emu/suyu"
upstream: "https://github.com/suyu-emu/suyu"
profiled_date: "2026-03-26"
upstream_gone: "GitHub withdrew the repository for legal reasons: the API answers HTTP 451. git.suyu.dev still serves a Forgejo page, but its API answers 403 and its raw paths 404, so it carries no readable tree. Observed 2026-09-04. Software Heritage archived git.suyu.dev on 2025-03-16, dev at the commit below, where the key and amiibo references land on the lines they cite. The analysed c096d16 is on no archived branch."
source_commit: "ee365bad9501c73ff49936e72ec91cd9c3ce5c24"
source_mirror: "https://archive.softwareheritage.org/browse/revision/ee365bad9501c73ff49936e72ec91cd9c3ce5c24/"
core_version: "Yuzu EA 4176 based"
version_basis:
kind: unverified
why: host_gone
display_name: "Suyu (Nintendo Switch)"
cores:
- suyu
systems: [nintendo-switch]
analysis_date: "2026-03-26"
analysis_commit: "c096d16 (Hengle/suyu-emu mirror, depth=1)"
mode: standalone
standalone_directories:
- "$XDG_DATA_HOME/suyu"
- "$HOME/.local/share/suyu"
- "PORTABLE_DIR"
- "SuyuPath::KeysDir = keys"
# Suyu is a community fork of yuzu, started after yuzu's legal takedown.
# Key files loaded from <data_dir>/keys/ (fs_paths.h:20, path_util.cpp:124),
# the folder path_util.cpp generates as SuyuPath::KeysDir. The paths below
# are relative to the data folder: $XDG_DATA_HOME/suyu on Linux,
# %APPDATA%/suyu on Windows, or the user folder (PORTABLE_DIR) beside the
# executable when it exists.
# Firmware NCAs are installed via UI into nand/system/Contents/registered/.
# HLE fallbacks exist for fonts, timezone, system version, mii model, ng word lists.
# Original repos (GitHub + GitLab) are DMCA'd. Analysis from community mirror.
files:
- name: "prod.keys"
required: true
path: "keys/prod.keys"
note: "Production keys for NCA decryption (master, key area, header, titlekek)"
source_ref: "src/core/crypto/key_manager.cpp:654"
- name: "title.keys"
required: false
path: "keys/title.keys"
note: "Per-title encryption keys (rights_id to titlekey mappings)"
source_ref: "src/core/crypto/key_manager.cpp:657"
- name: "console.keys"
required: false
path: "keys/console.keys"
note: "Console-specific keys (BIS, SD seed)"
source_ref: "src/core/crypto/key_manager.cpp:658"
- name: "key_retail.bin"
required: false
path: "keys/key_retail.bin"
size: 160
note: "Amiibo decryption keys (two InternalKey structs, 0x50 bytes each)"
source_ref: "src/core/hle/service/nfc/common/amiibo_crypto.cpp:273-294"
- name: "registered/"
type: directory
path: "nand/system/Contents/registered/"
required: false
hle_fallback: true
description: "Installed Switch system firmware, the system title NCAs"
note: >-
Read as the system NAND content registry at every start. Files are named
<32 hex digits>.nca or <32 hex digits>.cnmt.nca, flat or under 000000XX
folders, a directory of the same name holding split parts 00, 01... also
accepted. The meta NCAs index the rest. Nothing is required to boot: a
missing system data archive is synthesized for MiiModel, NgWord,
SystemVersion, TimeZoneBinary and the shared fonts, any other one fails
the service call, and the applet actions need the MiiEdit program NCA.
source_ref: "src/core/file_sys/bis_factory.cpp:20, src/core/file_sys/registered_cache.cpp:50-57, 329-348, 379-413, src/core/hle/service/filesystem/fsp/fsp_srv.cpp:425-456, src/suyu/main.cpp:4828-4842"
- name: "<firmware>"
aliases: ["<firmware>.zip"]
required: false
storage: large_file
description: "Switch system firmware dump, a folder or zip of NCAs"
note: >-
Install medium chosen by the user, never read again. The desktop build
takes a folder and copies the .nca files at its top level, the Android
build takes a zip whose entries must all be .nca files at its root. Keys
must be installed first. The registry is emptied, the files copied under
their own names, then every non-meta NCA is hashed with SHA-256 and the
first 16 bytes compared with its file name.
source_ref: "src/suyu/main.cpp:4152-4287, src/frontend_common/content_manager.h:257-336, src/core/loader/nca.cpp:86-159, src/android/app/src/main/java/dev/suyu/suyu_emu/ui/main/MainActivity.kt:373-418"
notes: |
Suyu is a standalone Nintendo Switch emulator, community fork of yuzu after legal takedown.
dev.keys can be used instead of prod.keys when use_dev_keys is enabled (for Switch dev units).
Firmware (system NCAs) is installed through the UI from a folder, or a zip on Android.
Commercial games need the keys. Homebrew (.nro, .nso) runs without keys or firmware.
Original repos DMCA'd by Nintendo. Analysis performed from community mirror (Hengle/suyu-emu).