Pokémon Ultra Sun gets static recompilation build scripts for PC
New scripts translate Pokémon Ultra Sun (3DS) into a native Windows and Linux program using the Bergamota runtime.
Static recompilation hits the Nintendo 3DS library. Developer SirWinstonChurchillTheFirst published pokemon-ultra-sun-native, a set of scripts that builds Pokémon Ultra Sun (Nintendo 3DS, title id 00040000001B5000) as a native Windows and Linux program.
The project translates the game’s ARM code into C ahead of time and runs it on Bergamota, a small 3DS system with a Vulkan renderer. No emulator is involved. The release is in beta, put together and tested in one evening on November 17, 2026. It starts, plays into the game, and saves; nobody has played it through, and you should keep your emulator.
The author points to Solstice by the runtime’s author as the real port with widescreen, options, and a launcher. This repository provides only the plain game on the plain runtime via two setup scripts.
How to try it
You need your own decrypted dump in .3ds, .cci, or .cxi format, as game data is not included.
Windows (requires git, CMake, MSYS2 CLANG64 packages, and a Vulkan card):
powershell -ExecutionPolicy Bypass -File setup-windows.ps1 -Rom "D:\dumps\game.3ds"
Linux (requires packages named at the top of the script):
./setup-linux.sh /path/to/game.3ds
The scripts clone Bergamota at commit 2100733, apply a local patch, build the player and recompiler, and compile the game into a build/play folder. Controls map via SDL for gamepads, or keyboard arrows with X as A and Z as B, while the bottom screen takes mouse input.
