2026.12.4

NitroPatcherDS: Patching Retail DS Cartridges

Play fan translations on retail cartridges.

NitroPatcherDS: Patching Retail DS Cartridges
Table of Contents

If you’ve followed my work, you probably know that I distribute my DS fan translations as patches for players to apply themselves, keeping full ROMs out of my releases to avoid copyright issues. I originally used xdelta, but it was very inflexible: the original ROM’s checksum had to match exactly. Later, I made a Windows patching tool called NitroPatcher, which I eventually brought to several other platforms. It reads the structure of a DS ROM and patches the game by replacing the files inside it.

There was one thing this setup still couldn’t do: apply a patch directly to a retail cartridge. Previously, Wokann (卧看微尘) had implemented a workaround for playing translations through TWiLight Menu++: it reads and writes saves on the retail cartridge, but still requires a complete game ROM. I’d always wanted something like Luma3DS on the 3DS, which can apply patches to retail cartridges, but nobody had made it happen for DS games. Thankfully, with the power of AI, I’ve finally fulfilled a years-long dream.

And so, with AI’s help, here comes NitroPatcherDS. It applies patches to retail cartridges on the console itself. While the game is running, it reads data from both the cartridge and the memory card, and saves are read from and written directly to the original cartridge. It’s mainly intended for the 3DS/2DS and DSi.

How It Works

Game data on a retail cartridge is read-only, so writing to it through software is out of the question. Luma3DS on the 3DS and Atmosphere on the Switch provide file replacement at the system level: when a game reads a data file, they redirect the read to a different path, allowing patches to take effect. Nobody had implemented that approach for DS games.

I asked AI to use nds-bootstrap as a reference. Since TWiLight Menu++ can both run DS games from an SD card and read and write saves on a cartridge, it must be able to choose where it reads data from. Adding another data source to that process would let it decide whether each read should go to the retail cartridge or the patch on the SD card.

To support both my existing XZP patches and the xdelta patches commonly used outside China, the program rearranges files and updates the ROM header and file allocation table the first time it prepares a patch. This lets the game find the modified files. In effect, it builds a “virtual ROM” that describes the layout of the entire patched game and where each section of data should come from. The game still reads by ROM offset; the reader underneath splits those requests and sends them to the cartridge or the SD card. Saves continue to use the cartridge’s own storage, so the translated and original versions can read each other’s saves.

Patch Formats

NitroPatcherDS supports NitroPatcher’s .xzp format, as well as .xdelta patches made against an entire ROM. An .xzp file is essentially a ZIP archive containing replacement files, xdelta patches for individual files, or both. The program reads the cartridge’s file system, applies the changes one by one, and builds the virtual ROM. My previously released translation patches still work. To encourage wider use of the format, I also had AI build the NitroPatcher web tool, so anyone can make their own patches.

You can also apply multiple patches at once. For example, you could apply a translation patch, followed by a modification designed for that translated version. Each patch reads the virtual ROM produced by the previous one. The final result is consolidated into a mapping table and a data file, which the game reads at runtime. Order matters, so the interface labels the patches [1], [2], and so on to show the order in which they will be applied. I actually added this feature for my patches that preserve Japanese Pokémon names. Many people using retail cartridges want to keep those names in Japanese so they won’t appear garbled when loaded in the original game. That’s why, for my Generation IV translations, I made base translation patches and separate Japanese names patches.

The initial preparation involves reading the cartridge, checking the patches, decompressing files, and generating a cache. It can take quite a while for some games, and I haven’t found a particularly good way around that. Perhaps the virtual ROM could be generated on a computer first, but that would defeat the point of XZP patches, so… you’ll just have to wait.

What About the Original DS?

The project was originally called NitroPatcher3DS because I only intended it for the 3DS. Later, Wokann pointed out that I could support other platforms too, just like TWiLight Menu++. So I had AI add support for the DSi and DS/DS Lite, and renamed it NitroPatcherDS.

The 3DS and DSi have their own SD card slots, leaving the game card slot free for the retail cartridge, so both can be accessed at the same time. Things get more complicated on the DS and DS Lite: Slot 1 has to be reserved for the retail cartridge, the console has no SD card slot, and all of this clearly isn’t going to fit into its 4 MiB of RAM. Then I discovered that Slot 2 flashcarts were a thing: flashcarts that use the GBA cartridge slot. They also need to be started in DS mode, which requires either flashing the console’s firmware or booting them from a Slot 1 flashcart. I spent ages trying to install FlashMe, got nowhere, and even damaged the console while taking it apart. That left me with the Slot 1 flashcart route. To patch a retail cartridge, you first insert both flashcarts, boot Slot 2 from Slot 1, remove the Slot 1 flashcart and insert the retail cartridge, then launch the patched cartridge from Slot 2… what a mess, right?

Memory makes things even more annoying. The DSi has an extra area of memory that DS games don’t use, which gives the patching code somewhere to go without too much trouble. The original DS has no such area, so everything has to fit into 4 MiB. Too many files and you run out of memory, and the patching code may also conflict with the translation’s own code… On top of that, DSi-enhanced games such as Pokémon Black, White, Black 2, and White 2 can only run their DS portion on an original DS. The full DSi area can’t be read because the console doesn’t even recognize it. In that situation, even checking the ROM’s MD5 is impossible. The only way around this is to prepare the cache on a 3DS or DSi using the same cartridge, patches, and patch order, then copy the corresponding cache directory to the Slot 2 flashcart’s memory card.

For all those reasons, I’ve given up on supporting the original DS and DS Lite. If it works, great. If it doesn’t, I’m leaving it at that.

Usage

Download the program from GitHub, and choose the package for your console:

Console Package How to Launch
3DS/2DS NitroPatcher3DS.zip Requires Luma3DS. Install the CIA with FBI, then launch it from the HOME Menu.
DSi NitroPatcherDSi.zip Requires Unlaunch. Launch it from the console’s SD card.
DS/DS Lite NitroPatcherDS.zip Requires a Slot 2 flashcart that supports DS mode. Launch BOOT.NDS from the root of its memory card.

The package includes detailed instructions, so I won’t repeat them here.

The source code is available on GitHub.