Repository navigation
Eglantine nx2 build 110 (f6d03bc)
Pre-releaseWhat's new in this build
This is build 110 of the nx2 branch (f6d03bc). Against the previous nx2 build (104) it adds .nup support and updates the Nix dev shell; nothing else in the tree changed.
.nup games now load
If your dump is a single .nup file rather than an .nsp/.xci, you can now add it to the game list and launch it like any other title: the emulator reads the program, the RomFS, the name, the icon and the version straight out of the container.
- Base and update in one file. A NUP can hold the base program together with its updates; the newest update inside the container is layered over the base automatically, so the game runs at the version that was packed. A container with only an update (no base) boots on its own from its complete patched tree.
- It appears like a normal game. Title name, icon and display version are read from the container's metadata, when the container carries them.
- DLC is not available yet. Add-on content packages inside a container are recognised but not mounted; the log says
NUP container has N add-on content package(s); AoC mounting is not supported yetwhen there are any. - A corrupt file is rejected, not crashed on. The table of contents is SHA-256 checked when the file is opened, and a bad file gives "The NUP container is malformed or its TOC hash does not match" instead of a crash; a container without a loadable program gives "The NUP container does not contain a loadable base package".
.nupis a normal supported extension, so nothing needs configuring: it works through Open file and when scanning a folder.
Also in this build
shell.nix: moved to nixpkgs 25.05 (ninja,fmt_11,sdl3,qt6.qtcharts,mesa),VK_DRIVER_FILESnow points at Nix's Mesa RADV because host/usrVulkan drivers cannot be loaded inside the Nix shell, and ashellHookexportsCMAKE_PREFIX_PATH. This only affects building in a Nix dev shell.
If you are coming from build 109
Build 109 was an nx2-experimental build that merged nx2 with the test/linux-all-prs topic batch. This build does not contain that batch. It is nx2 at f6d03bc plus the .nup loader, and the experimental commits — task/mesh shader support and the EDEN_NX2_NO_MESH switches, the ISBERD/ISBEWR Ampere lowering, reading GPU-written command lists, the EDEN_NX2_DRAW_LOG diagnostics, and the Vulkan memory, texture-cache, Dynarmic and vfs work — are not in it. If you were running 109, take an nx2-experimental build (113 or later) instead of this one.
How it works, for the technically curious
- New
FileType::NUPwithLoader::AppLoader_NUPandFileSys::NupContainer. Layout: a 0x80-byte superblock (magicNUP\x01), a table of contents (package records, dir/file nodes, children array, string pool), then a blob region of 16-byte-aligned per-file extents that are either raw or zstd-compressed. - The TOC's SHA-256 is compared with the superblock before anything else is trusted, and
VerifyIntegritystreams each member against its own stored SHA-256. - Packages are base, update and add-on.
FindBestUpdatePackagetakes the highest version; the update's ExeFS and RomFS are shadow-merged over the base (MergeShadowDirs) and the ExeFS is wrapped as a deconstructed ROM directory. An update-only container boots its update tree directly. - Per-package meta TLVs carry NPDM bytes, default and localized names, default and localized icons and a display version; a NACP is synthesised from them for the game list.
- zstd extents are decompressed on first read and cached per container (LRU, 512 MiB cap).
IsSwitch2Programalso readsmain.npdmfrom a NUP's ExeFS, so a Switch 2 title packed as NUP gets the same per-title handling as a loose NX2 dump.- Two new result statuses:
ErrorNUPBadFormat,ErrorNUPNoBasePackage.
Automatic build of nx2 at f6d03bc.
Windows: extract the zip and run eglantine.exe, or eden-cli.exe from a terminal.
Linux (AppImage): make it executable (chmod +x) and run it; it bundles its libraries and needs glibc 2.39 or newer (Ubuntu 24.04, Fedora 40, Debian 13, Arch).
Linux (tar.gz): extract it and run ./eglantine or ./eden-cli; it uses your system libraries, so Qt 6 and the usual libraries must be installed.
macOS: Apple Silicon and macOS 15 or newer. Unzip and move eglantine.app to Applications; eden-cli is inside it, in Contents/MacOS. The app is not notarized, so the first time right-click it and choose Open (or run xattr -dr com.apple.quarantine eglantine.app).
The -pgo builds are the same programs compiled with profile-guided optimization (clang plus Eden's profile); prefer them when your CPU supports it. The Windows PGO build is a MinGW build, so it carries its own DLLs and needs no Visual C++ redistributable.