Spirit Tracks Recomp
Spirit Tracks Recomp is a native port of The Legend of Zelda: Spirit Tracks to Windows and Android with widescreen support and HD text.
- Type: PC port
- Game: The Legend of Zelda: Spirit Tracks
- Runs on Windows and Android
- By dguillot-gh
- Latest release v0.3.0, 2026-11-26
- Source: https://github.com/dguillot-gh/spirit-tracks-recomp
README
Spirit Tracks Recomp
A native port of The Legend of Zelda: Spirit Tracks (Nintendo DS) to Windows and Android. The game's ARM9 code (the main program and all 114 overlays, about 32,500 functions) is statically recompiled to C and compiled ahead of time instead of emulated; the rest of the DS comes from melonDS. It is the sister project of phantom-hourglass-recomp: the same engine, program and Android app, set up for Spirit Tracks.
https://discord.gg/P3nqgTarW - discord link here
For anyone who wants to join.
No game data is included. You build the game from your own dump. Please don't share the builds you make: the game folder and the APK contain the game.

On a Moto G Stylus 2025: 21:9 widescreen, HD text, and the minimap of the top screen in the corner.

Cutscenes in widescreen too: the scene fills the whole 21:9 width, with the game's own letterbox bars above and below.

Rooms drawn across both screens (the Tower of Spirits) are shown joined, top above bottom, as one seamless picture.
Features
Picture
- Software, OpenGL and Compute renderers: 2x-8x on a PC, up to 4x on a phone
- Widescreen 16:10 (Steam Deck, tablets), 16:9 and 21:9: the 3D fills the screen, actors are drawn across the whole wide picture (no pop-in at the sides), cutscenes fill it too (the game's letterbox spans the width), and the HUD (hearts, timer, Menu button, the train's lever and horn cord) sits at the picture's edges and still answers touches there
- Two-screen 3D (the Tower of Spirits' rooms, where the game draws one tall view across both screens a frame at a time): both screens are shown joined, wide and without the gap between them, and back to the usual layout after
- HD text: dialogue, choices and labels drawn with a vector font at the screen's own resolution, kept with save states (from Phantom Hourglass Recomp, by chouette-cc)
- 3D textures (OpenGL renderer): the DS's pixels, smooth, sharp, or xBR (the texels' edges redrawn as smooth lines, like an emulator's xBRZ texture filter)
- Sharp or smooth filtering; the DS's shape or stretched
Play
- D-pad controls and an analog stick (on-screen or a gamepad's left stick: walk with a light push, run at the rim), with no ROM patch needed: the port does what d0k3's D-pad patch does in the game's code itself, so a build from your clean dump has them too
- Plays the USA 1.0 release, not 1.1 (see Which versions work). Your clean dump, the D-pad patch or the D-pad + QoL patch: one build plays all three (built from the D-pad + QoL ROM by default; the QoL changes come only with the QoL ROM)
- 12 save-state slots with pictures, plus Continue from where you quit
- Language: Auto (the system's), English, French or Spanish, the three the USA ROM carries, plus German and Italian
with a European ROM; in the PC menu, the phone's settings,
settings.inior--language(applies at the next start from the title screen, not Continue) (from Phantom Hourglass Recomp, by chouette-cc) - Europe (test): a European dump (Revision 0 or 1) builds with
-Variant eur. Its addresses come from the zeldaret/st decomp, not yet tried on a real European ROM: reports welcome. The D-pad controls and the analog stick are mapped for it too (untested). - Touch, keyboard and gamepad; microphone and Spirit Flute blow buttons (no real microphone needed)
Phone
- A minimap of the other screen in the bottom-left corner (landscape), like a game's corner map: tap it to swap the screens, hold it to move it, pinch it to resize it, or hide it with the MAP button. It moves above dialogue boxes and hides in cutscenes.
- Movable on-screen controls, portrait mode with both screens like a DS held open
- Dual-screen handhelds (AYN Thor, Ayaneo Pocket DS, a dual-screen add-on) or a TV: one DS screen on each display (on by default when a second display exists; ≡ menu → Display or the start screen's Settings: Dual screen, Second display shows, Touch screen for the AYN Thor). Phones with one screen are unchanged. Not yet tried on such a device.
- 120 Hz (or 60 Hz) display mode and Android's performance hint, for a steady 60 fps
PC and phone: what differs
The two builds share the game, the renderers and the menu, but each has a few things of its own. Most new features are tried on a phone first, so the PC column can lag behind; this table is kept up to date with each release.
| Feature | PC (Windows) | Phone (Android) |
|---|---|---|
| Renderers | Software, OpenGL, Compute, 2x-8x | Software, OpenGL, Compute, up to 4x |
| Widescreen (16:10, 16:9, 21:9) | Yes (OpenGL / Compute) | Yes (OpenGL / Compute) |
| Two-screen 3D shown joined (Tower of Spirits) | Should work (same code); not tried on a PC yet | Yes |
| HD text, save states, Continue, language | Yes | Yes |
| D-pad controls and the analog stick | Keyboard arrows, a gamepad's D-pad or left stick | On-screen pad and stick, or a gamepad |
| Stylus | Mouse | Touch |
| Screens | One screen (Tab / F2 swaps), or both side by side (menu: Screen) | One screen, the other as a minimap in the corner; both in portrait |
| Second display (dual-screen handhelds, a TV) | No | One screen on each display (≡ → Display); untested on a device |
| Minimap | No (yet) | Yes: tap to swap, hold to move, pinch to resize, MAP hides it |
| Microphone / blow, lid | Hold M / C | MIC, BLOW and LID buttons |
| Movable on-screen controls | No (not needed) | Yes ("Move and resize controls") |
| Fullscreen, screenshot, fast-forward | F11, F12, hold ` | No (always fullscreen) |
| 120 Hz mode, Android performance hint | No (follows the monitor) | Yes |
Tested devices, measurements and known issues: TESTING.md.
Ideas and features being considered next: docs/WISHLIST.md.
What you need
-
Your own dump of the game. Which release you have matters: the program knows a dump by its SHA-1, whatever the file is called.
Which versions work
Release (No-Intro name) SHA-1 Plays? D-pad and analog stick USA 1.0 — Legend of Zelda, The - Spirit Tracks (USA, Australia) (En,Fr,Es) 1f0921b5e99db9d92d24710f1b004e4f3c997b73Yes (the main target) Yes, native, no patch needed (tested on a phone) USA 1.0 with d0k3's D-pad patch v0.9c 6a63d88702c34da626e273dfca4931d52ac4551bYes Yes (the patch's own code) USA 1.0 with d0k3's D-pad + QoL patch v0.9c 6896c1db2b3a725cb991f711a875fc2228b7620eYes (the default build) Yes, plus the patch's QoL changes USA 1.1 — Legend of Zelda, The - Spirit Tracks (USA) (En,Fr,Es) (Rev 1) 9953bce6ce32c35d084300c32b555b40aa013047No, not supported — Europe Rev 0 — Legend of Zelda, The - Spirit Tracks (Europe) (En,Fr,De,Es,It) 9e99cc803a14ce038eb908db585431f8254f09eeTest ( -Variant eur), untriedMapped, untested Europe Rev 0 (PT-BR) — Legend of Zelda, The - Spirit Tracks (Europe) (PT-BR) 25754d08acf6d38b1faf79d2817a798e740dacd1Yes ( -Variant eur)Mapped Europe Rev 1 — … (Europe) (En,Fr,De,Es,It) (Rev 1) dcb221a89acb894503a461c2c7d4cfdad9a06b68,b9096f46e9163750a9e3f6c2fc0758e6094b6135,b0288a880498c12508e53f4373085eb88955e14b,4efbff9a263fe622f3f7e7cfb7bea8046b86e57dor52d7f22255d5d86fc40d3a43c7de969e0365ff7dTest ( -Variant eur), untriedMapped, untested - Get the USA 1.0 release. USA 1.1 (Rev 1) is a rebuild of the game: nearly all of its code moved, so the port can't use it at all yet. If your dump's SHA-1 isn't in this table, it won't build.
- To see your dump's SHA-1 on Windows:
Get-FileHash -Algorithm SHA1 your-dump.ndsin PowerShell. - Dump your own cartridge (for example with a DS homebrew dumper such as GodMode9i). No-Intro's names above are what a dump usually gets called; the box doesn't say which revision a cartridge is, so check the SHA-1.
- Europe builds with
-Variant eur(each script takes it, e.g.RUN-ALL.ps1 -Variant eur). Its addresses come from the zeldaret/st decomp and haven't been tried on a real European ROM yet: reports welcome. An APK plays the revision it was built from.
-
Optional: d0k3's DPAD & QoL Hack v0.9c (the folder
loz_st_dpad_qol-v0.9cwith its BPS files), for its QoL changes (L / R blow the Spirit Flute and speed up the train, and more). It applies to USA 1.0 only. The D-pad controls and the analog stick no longer need it: a build from your clean dump (-Variant clean) has them. -
Windows 10/11 64-bit, about 10 GB of disk, and an OpenGL 3.3 GPU for the GPU renderers.
-
For Android: an Android 8+ arm64 phone (OpenGL ES 3.2 for the GPU renderers) and a USB cable.
Download and play (easiest)
No tools to install: the program builds the game from your ROM on your own PC or phone, once, in about a minute (longer on slow machines). Nothing from the game is downloaded or included. You need your own USA dump (clean, D-pad patch or D-pad + QoL patch v0.9c; see What you need).
Windows 10/11 (64-bit):
- Download
SpiritTracks.exefrom the latest release. - Run it. The browser and Windows SmartScreen may warn that the file is unrecognised (it is not code-signed yet): choose Keep, then More info → Run anyway.
- Select your ROM when it asks. It builds the game, then starts it. A newer
SpiritTracks.exerebuilds the game by itself the first time it starts, saves kept.
Android 8+ (arm64):
- Download
SpiritTracks.apkfrom the latest release on the phone and open it (allow your browser to install apps when Android asks; Play Protect may warn about an unknown app: Install anyway). - Tap Choose game ROM, pick your dump, and let it build.
- Updates: when a new release is out, the start screen shows Update to vX; it downloads the new APK and Android asks you to confirm. Your saves stay, and the game is built again for the new version. The check (GitHub's release list, at most every 6 hours, nothing about you is sent) can be turned off in Settings.
SHA256SUMS.txt in each release has the files' checksums. The version and commit are shown on the start screen
(Android) and in the window title and menu (Windows).
The launcher, changing the ROM, starting over (Windows)
After the first build, SpiritTracks.exe opens a launcher before the game. The game page has CONTINUE (where you last quit) or
PLAY, and Start game (from the title screen). The cog opens Settings, which has two tabs. Display holds the
main settings: screen, renderer, resolution, 3D textures, widescreen, fullscreen and HD text. The in-game menu (F1 or
Esc) has the rest. Game files has Change ROM... (pick another dump: the game is built again from it, saves
kept), Rebuild game (from the kept ROM) and Open folder (the data folder). The X quits. Mouse, keyboard
(arrows, Enter, Esc) and gamepad (D-pad, A, B, shoulder buttons) all work. --no-launcher starts the game straight away; --setup builds again from the command line.
Everything lives in the data folder (the launcher's Settings, Game files, Open folder opens it):
%APPDATA%\ST-Recomp\SpiritTracks(paste it into Explorer's address bar), ordata\next to the exe when a file namedportable.txtis next to it (a portable copy, e.g. on a USB stick).
| Folder / file | What it is | Starting over |
|---|---|---|
game\ | the game built from your ROM (st_game.dll, st_game.id) | delete: it is built again at the next start |
rom\ | the copy of your ROM it was built from (bkie.nds) | delete to be asked for a ROM again |
saves\ | your in-game save (bkie.sav) | keep |
states\ | save states and the Continue state | keep (delete only to drop them) |
settings.ini | settings | delete to go back to the defaults |
To start over with a different ROM by hand: close the game, delete game\ and rom\, start SpiritTracks.exe and select
the new dump. Your saves stay.
Quick start: build it yourself
You build the game on a Windows PC from your own copy of the game. It takes about an hour the first time, mostly waiting. Step by step:
- Install Git (to download this project): open the Start menu, type
PowerShell, open it, and paste this line (right-click pastes), then press Enter:
Close PowerShell and open it again afterwards.winget install --id Git.Git -e - Make a folder for everything, for example
C:\Games\st-workspace, and inside it a folder namedroms. Put your Spirit Tracks dump (USA 1.0) inroms(any file name). - Optional, for the QoL patch's extras: put d0k3's patch folder
loz_st_dpad_qol-v0.9cinroms\patches\. Without it, build with-Variant clean: the D-pad controls and the analog stick work all the same. - Download the project into that folder. In PowerShell, paste these two lines (change the path if you used another
folder):
Don't use GitHub's green "Download ZIP" button: the ZIP leaves out melonDS, and the build then fails. The folder should now look like this:cd C:\Games\st-workspace git clone --recurse-submodules https://github.com/dguillot-gh/spirit-tracks-recomp.git st-recompC:\Games\st-workspace\ st-recomp\ (the project) roms\your-dump.nds (your game) roms\patches\loz_st_dpad_qol-v0.9c\ (the patch, if you have it) - Build it (installs the build tools the first time; Windows asks for admin once):
Without the patch, addpowershell -NoProfile -ExecutionPolicy Bypass -File st-recomp\scripts\RUN-ALL.ps1-Variant cleanat the end. When it says it's done, openC:\Games\st-workspace\games\SpiritTracks\(SpiritTracks-Clean\without the patch) and double-clickSpiritTracks.exe(PLAY.cmddoes the same). That folder is the whole game: move it anywhere you like. - For an Android phone:
- Turn on USB debugging once: Settings → About phone → tap Build number seven times; then Settings → System → Developer options → USB debugging on.
- Plug the phone into the PC with a USB cable and tap Allow on the phone when it asks.
- In the same PowerShell window (add
-Variant cleanhere too if you built without the patch):
It builds the app, installs it and copies your game in. Without a cable, addpowershell -NoProfile -ExecutionPolicy Bypass -File st-recomp\scripts\RUN-ANDROID.ps1-NoPhone: it only makes the app (inapks\); copy that file to the phone, tap it to install, and pick your ROM on the app's start screen.
If something goes wrong: the script stops with a FAIL line that says what's missing. Every step's full output is
in the logs\spirit-tracks\ folder; attach the newest log when you open an issue. Don't attach your ROM
or the patch.
Building
The short version, for people who already use Git and PowerShell.
Put the repository, your ROM and the patch side by side:
workspace\
st-recomp\ (this repository)
roms\your-dump.nds (any name)
roms\patches\loz_st_dpad_qol-v0.9c\ (the patch)
git clone --recurse-submodules <this repository> st-recomp
powershell -NoProfile -ExecutionPolicy Bypass -File st-recomp\scripts\RUN-ALL.ps1
This installs the build tools, patches your dump, builds the game and makes a games\SpiritTracks\ folder; run its
PLAY.cmd. For the phone, run scripts\RUN-ANDROID.ps1 next: it builds the APK and installs it over USB with your
ROM. Every script takes -DryRun and -Variant qol|dpad|clean. Step by step, and what each script changes on your
PC: scripts/README.md.
Controls
PC: the mouse is the stylus. Arrows = D-pad, X/Z/S/A = A/B/X/Y, Q/W = L/R, Enter/Right Shift = Start/Select. M (hold) = blow into the microphone, C (hold) = close the lid. F1 or Esc opens the menu. F5/F8 save/load a state. Tab/F2 switch screens, F3 sharp/smooth, F4 FPS counter, F11 fullscreen, F12 screenshot, ` (hold) fast-forward. Gamepads work too (the menu can make the left stick an analog stick).
Gamepad (PC): Start taps the game's Menu button (on the touch screen), Select + Start opens the menu, L3 swaps the screen shown, R3 blows into the microphone. In the menu: D-pad, A to choose, B to close, L / R for the settings' categories (Display, Graphics, Game, Dev), Select for the next page.
Android: touch is the stylus. The small buttons are the menu (≡), TOP (the top screen), ⟳ (portrait), MAP (the minimap), MIC, BLOW and LID. The menu has the renderer, widescreen, HD text, save states, the analog stick and "Move and resize controls".
The D-pad (or the stick) moves Link, Y + D-pad walks, B slashes (with a direction: the other slash), A talks, picks up and taps in front of Link, A with a direction rolls. The field's own D-pad shortcuts move to Select + Right, Select + Down and Select + Up. These work on every ROM (native since 2026-11-25; on the patched ROMs the patch's own code does it). With the QoL patch L or R also blow the Spirit Flute and speed up the train (the patch's own readme has the full list).
Testing and reporting issues
Known issues and the devices it's been tested on are in TESTING.md.
Found a bug? The quickest way is Report a bug: in the PC launcher's settings (Game files) or the in-game menu (F1 / Esc), on the phone in the launcher or the game's ≡ menu. It writes one text file with the app version, the ROM's release and SHA-1 (never the ROM itself), your system and GPU, your settings, the game build's logs and the end of the program's log.
- PC: the file (
bug-report-<date>.txt) is saved in the data folder (%APPDATA%\ST-Recomp\SpiritTracks, ordata\beside the program withportable.txt), the folder opens, and so does a GitHub "new issue" page with a short summary filled in: describe what happened and drag the file into it. The program's own log islog.txtin the same folder. - Phone: the share sheet opens with the file attached: send it by email, Discord, Drive, or post it on GitHub.
Or open an issue yourself and include:
- Where: PC or phone, with the phone model
- Settings: renderer (Software, OpenGL or Compute), resolution, widescreen, HD text on or off
- ROM: clean, D-pad or D-pad + QoL
- What happened: the steps to get there, plus a screenshot or a save state if you can
- Logs: build problems: the log in the workspace's
logs\spirit-tracks\folder. Game problems on Android:adb logcatoutput (tagstrecomp).
Please don't attach your ROM or any game files.
How it works
ntr-recomp turns the ROM's functions into C (boundaries from the zeldaret decompilation), which compiles into a game
module that ntr-runtime runs natively, with melonDS providing the rest of the DS hardware. The game's threads run on
host fibers, and its anti-piracy checks (DS Protect) are answered as a genuine cartridge would. Porting notes:
ST-PORT.md.
| Folder | What |
|---|---|
frontend/ | the program (PC and Android), the menu, save states, HD text, Spirit Tracks's hooks, config/bkie |
| `a |