Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

Olmectron/nx2-relink

Games

Turn a Switch 2 game dump you own into a homebrew .nro that runs natively on a Switch 2.

129
23
C
MIT
new today

What it does

nx2-relink takes a dump of a Nintendo Switch 2 game you own and builds a homebrew .nro that runs the game's own code on a Switch 2 — relinked, not emulated. The game's modules are kept whole and mapped by the console's loader or relinked into the .nro, while the console's loader is replaced by the port's, system calls pass through the port first, RomFS is served from the SD card, and saves live in an SD folder. Graphics and sound still go through the game's own SDK on the console's real drivers (README).

It is a fork of nx-relink, which does the same for original Switch games on a Switch (nx-relink). The tool ships no games, keys or Nintendo files and only works with dumps you made from your own console.

Quick start

Requirements: a Switch 2 that runs homebrew (developed and tried with kaiHEN 20261117.1, with the homebrew menu started over a game by holding R), a NUP dump or loose folder of your own game, and a computer with Python 3.10+, devkitPro (switch-dev group, devkitA64 and switch-tools) and ounce-devkit installed (devkitPro setup). Then from the repository folder:

python nxrelink.py setup

This checks the toolchain and installs missing Python packages (lz4, zstandard, Pillow). Build and install in one go, either to a card mounted on the computer or over FTP:

python nxrelink.py make game.nup --name mygame --sd E:
python nxrelink.py make "dump folder" --name mygame --update "update folder or nup" --ftp 192.168.0.100:5000

There is also a window mode: python nxrelink.py opens a GUI where you pick the game and card and press Build and install. On the console, start the homebrew menu over a game (not from the album); ports appear together in the nx2-relink folder. If a run fails, attach /nx2-relink/<name>/crash.txt and log.txt to an issue.

What gets written to the SD card

The port is split between /switch/nx2-relink/<name>.nro (the program) and /nx2-relink/<name>/, which holds romfs.bin (split into parts on FAT32 for images of 4 GB or more), save/, log.txt, crash.txt and an optional mods/ folder. Mods are loose files placed at the same in-game paths and override only files the game already has. A game's saves are kept apart from the installed game's own saves; deleting the port folder deletes them too. Rebuilding a port with --nro-only replaces just the .nro. python tools/game2.py info <dump> reports what a dump contains without building.

Constraints

  • Risk to the console: this is experimental homebrew; games may crash or freeze, saves may be lost or corrupted, and SD card files may be damaged. Running homebrew can also lead to a console ban. The software is provided as-is under the MIT license (LICENSE).
  • Host game matters: to the console, a port is the game the homebrew menu was started over, so the port inherits that game's graphics memory, system resource and permitted services. Start the menu over the same game the port was built from when possible; non-graphics services can be stubbed, but graphics, display, controller, file and memory services cannot.
  • Compatibility is narrow: only a few commercial games were tried, and only with kaiHEN 20261117.1. Some games build but do not start; there is no per-game compatibility list.
  • Content support: DLC is not installed. Only Switch 2 games work on a Switch 2 — original Switch games are not supported through this tool.
  • Advanced options (--memory, --whole, --long-log) change what the game receives and can break titles that otherwise run.

HotRepo's take

The repository was created on 2026-11-25 and reached 123 stars and 23 forks by the 2026-11-26 new-project snapshot, with 111 of those stars already visible at the first sample that evening — rapid early uptake within roughly 14 hours of the counted growth window. It has no recorded daily all-language rank and no linked Hacker News discussion, so the signal here is a short burst of interest around a niche, risky homebrew tool rather than evidence of broad adoption. The engineering premise — relinking a console's own modules instead of emulating them — is what distinguishes it from compatibility-layer approaches, and the README's crash reports and kaiHEN version pinning show the project is still in a narrow validation phase.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. pixl27/ProjectReLinkBuilds a native Windows version of the Zelda: Ocarina of Time Switch 2 remake from your own game copy.C++114
  2. a55uka/nupPack unencrypted Switch game dumps into a single compressed NUP container and inspect, extract or verify it.Python414
  3. drakolordx7/pokopia-recompRuns a recompiled Switch 2 Pokémon game natively on Windows using your own game dump.C++510
  4. ouncebrew/kaihenA homebrew environment and minimal custom firmware for Switch 2, aimed at developers and advanced users.C++100
  5. zortos293/LichiiAn experimental open-source Nintendo Switch and Switch 2 emulator for Windows, Linux and macOS, aimed at players testing game compatibility.C++9,983