Skip to content

About

RomFS and ExeFS modloader for Switch 2, with Atmosphère-style folders and multi-game support through ns2jb.

Resources

Stars

92 stars

Watchers

2 watching

Forks

Repository files navigation

ns2jb-modloader

Load RomFS and ExeFS mods by Title ID on Switch 2, directly from microSD. Supports mods for both Switch 1 and Switch 2 games.

Requires a microSD or microSD Express card and an existing RPC session with the required FS access, provided by ns2jb or another compatible exploit.

Download and extract the latest ZIP on your PC.

Mod compatibility: Some older Switch 1 ExeFS mods need updates for games that changed from 32-bit to 64-bit, such as Mario Kart 8 Deluxe. Most Switch 1 games were already 64-bit. RomFS mods may still work if the game's file formats and paths are unchanged. Plugins, cheats and overlays do not work yet.

PC: Node.js 22+ on Linux, macOS or Windows/WSL, with a compatible RPC host. See macOS or Windows/WSL for host setup notes.

1. Add your mods

Copy the contents of sd-card-root/ from the extracted ZIP to your SD card root. This creates SD:/ns2jb-modloader/contents/.

You can drag and drop your Atmosphère contents folder into SD:/ns2jb-modloader/ (as long as your mods are compatible).

Extract the mod's romfs/ and exefs/ folders into SD:/ns2jb-modloader/contents/<TITLE_ID>/, using the game's 16-digit Title ID. IPS patches work in both exefs/ and exefs_patches/; there's no need to move or duplicate them. Your folders might look like this:

ns2jb-modloader/                     # On the SD card root
├── contents/
│   ├── 0400c3f00006e000/              # Mario Kart World
│   │   └── romfs/
│   │       ├── System/              # MOD 1 - 200cc
│   │       │   └── GymlArchive/
│   │       │       └── ...200cc files...
│   │       ├── Model/               # MOD 2 - character model
│   │       └── Tex/                 # MOD 2 - model texture
│   └── ...other game's Title ID.../
│       ├── romfs/
│       └── exefs/
│           └── <BUILD_ID>.ips       # IPS patches can go here OR in exefs_patches/
└── exefs_patches/
    └── ...patch name.../
        └── <BUILD_ID>.ips           # IPS patches can go here OR in the game's exefs/

Combine each game's mods in the same romfs/ or exefs/ folder. One installation handles all included games. The loader reads mod files in place; it does not duplicate your modpack or write patched executables to the SD.

For example, if you want to install the 200cc mod for Mario Kart World and the download contains 200cc/romfs/System/GymlArchive/, copy its romfs/ folder into SD:/ns2jb-modloader/contents/0400c3f00006e000/. Keep the paths inside romfs/ unchanged.

exefs/ accepts complete files such as main or subsdk0, as well as IPS/IPS32 and IPSwitch .pchtxt patches. Patches work in either exefs_patches/ or contents/<TITLE_ID>/exefs/.

2. Load your mods

With the SD card inserted in your Switch 2, FS access verified and RPC running, keep the ns2jb host open. Open another terminal and run these commands, replacing the example path with the path to the extracted ModLoader/ folder:

cd "/path/to/extracted/zip/ModLoader"
node load.cjs

The loader detects the active session and loads all mods from the SD. Wait for READY, then continue to step 3.

Games do not need to be installed or inserted during this step. Their mods are applied when you open them, including games installed or cartridges inserted later during the same boot. No previous preparation or game cache is needed.

3. Open your games

Once the installer says READY:

  1. Stop the terminal running the ns2jb host with Ctrl+C and let ns2jb finish cleanup.
  2. Close SmileBASIC without restarting the Switch 2.
  3. Open any of the games whose mods you installed.

Keep the microSD inserted. You can disconnect the PC and switch between modded games; the loader stays active until the console reboots.

Notes

  • Formats: RomFS replacements, new files/directories and romfs.bin; ExeFS files, .stub, exefs.nsp and IPS/IPS32 patches. Runtime cheats/plugins need a separate runtime.
  • Session selection: If automatic detection is unavailable, use node load.cjs --run-dir "/path/to/ns2jb/runs/switch2-SESSION".
  • Rebuilding from source: node tools/build.cjs requires Zig 0.15.2. The release includes the built components; Python is only needed for the developer checks in native/verify.py.
  • Cards: Regular microSD tested. microSD Express uses the same filesystem interface but still needs hardware testing.
  • FS/RPC compatibility: The loader checks the FS functions it needs rather than requiring a specific firmware or exploit game. Other exploits can work too, provided they expose the required native FS access through an ns2jb-compatible RPC session.
  • Sessions: Install once per boot. After a failed native operation, reboot before trying again.
  • Updating: Replace the PC ModLoader/ folder with the new ZIP's copy. Keep your mod folders on the SD.
  • Logs: If a mod does not work, send the contents of SD:/ns2jb-modloader/logs/. Reports are automatic and include game IDs, replaced/added files, first reads, IPS Build IDs and native errors. No debug mode is needed. The loader keeps the last three reports, up to 1 MiB each, without continuous logging.

Game assets, firmware, keys and mods are not included. GPL-2.0.

Credits: pepsipu, Kurumuz. Bundled game-mount helpers adapted from IZ2S / OunceCake (GPL-2.0; see lib/game-files/COPYING). ZBIC decompression uses Atmosphère's Zstandard fork, bundled under GPL-2.0 in native/vendor/zstd/. No separate OunceCake download is required.

About

RomFS and ExeFS modloader for Switch 2, with Atmosphère-style folders and multi-game support through ns2jb.

Resources

Stars

92 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages