rommsync-nx
On-device RomM sync for the modded Nintendo Switch. Browse your self-hosted
RomM library, download games straight into your emulator
folders, play, and have your saves auto-sync back to the server — from any
network — so every device and the server always hold the same version.
This is the piece the Switch ecosystem is missing. SwitchRomM already does
browse-and-download; rommsync-nx adds the thing nothing on Switch does yet:
save sync via RomM’s device-sync protocol, running as a background sysmodule
you control from an Ultrahand / Tesla overlay.
Status: built and tested off-console, not yet run on a Switch. The
sysmodule and the overlay are written: pairing, the download queue, save sync
with backups and a conflicts screen, opt-in save states, and — new in the
v1.0.0-rc2 pre-release — saves shared with RetroArch, RomM’s web player,
Argosy and Grout (docs/INTEROP.md), sync held while a
game is running, and sleep handled. Sync, downloads and
pairing are tested against a real RomM and the overlay’s screens on the host;
nothing has booted on a console yet, and the first
real-console run is M8-2. It needs RomM 5.4.0 or later and refuses to sync
with anything older; that API is captured and verified — see
docs/API_CONTRACT.md.
Test-first, hardware-last. No real Switch and no production RomM is touched
until a v1 is fully proven off-console — on a native host harness against a
throwaway real RomM in docker (with a fault-injecting proxy forcing the
failure paths), then Ryujinx. See docs/TESTING.md.
Why a sysmodule + overlay (not just an app)
SwitchRomM is a foreground NRO: you sit in it while it downloads, and it can’t
touch your saves after you leave. rommsync-nx splits the job the way the rest of
the Switch homebrew scene does:
sys-rommsync — a background sysmodule. Authenticates to RomM once
(device-code flow, no passwords typed on-console), then quietly: runs the
download queue, and syncs saves on boot / on a timer / on demand. Works over
the internet because it calls out to RomM over HTTPS — nothing is exposed
inbound on the Switch.
ovl-rommsync — an Ultrahand/Tesla overlay (.ovl) to drive it:
browse the library and queue games, toggle sync on/off, see last-sync status,
and edit config. Built on libultrahand, so it appears in your Ultrahand
overlay list like sys-clk or ovl-sysmodules.
How it works
- Open the overlay, browse your RomM library, tap games to queue.
sys-rommsync downloads them in the background into the right Tico / RetroArch
folders.
- Play offline. On the next sync — on boot, on the timer, or “Sync now” in the
overlay, and never while a game is running — saves reconcile with RomM.
The server is the source of truth, so all your devices converge to the
same save; any save the console overwrites is backed up on the card first.
- When both sides changed, the overlay’s Conflicts screen lets you keep the
server’s copy or put this console’s back and upload it.
Installing it (users)
Download the zip from the Releases
page — the current build is a pre-release, not yet run on a console.
docs/INSTALL.md is the one page written for the person
holding the console: unpacking the release zip onto the SD, enabling the
sysmodule with ovl-sysmodules, pointing it at your RomM, and pairing without
typing anything secret on the console. Nothing in it has been run on hardware
yet — that is M8-2.
To share saves with RetroArch on a PC, RomM’s web player, Argosy or Grout,
docs/INTEROP.md is what to set on each of them, which
systems sync with which emulators, and where the limits are.
When a sync does not happen,
docs/TROUBLESHOOTING.md is the page: every failure
this client knows how to have, the line it writes in
sdmc:/config/rommsync/rommsync.log when it has one, and what to do about it.
docs/PRIVACY.md lists everything the sysmodule sends your
RomM and keeps on the card, and how to turn off play-time reporting.
Architecture at a glance
Nintendo Switch (Atmosphère) Your server
┌───────────────────────────────────────┐ ┌───────────────────────┐
│ ovl-rommsync (.ovl overlay) │ │ RomM 5.4.0 or later │
│ │ IPC (tipc) │ │ (HTTPS, public URL) │
│ ▼ │ HTTPS│ │
│ sys-rommsync (sysmodule) ────────────┼─────▶│ /api/auth/device/* │
│ • device-code auth │ │ /api/sync/negotiate │
│ • download queue → SD emulator dirs │ │ /api/saves ... │
│ • save sync (negotiate/execute/ │ │ /api/roms ... │
│ complete) │ │ │
│ • config + token on SD │ └───────────────────────┘
└───────────────────────────────────────┘
Full detail in docs/ARCHITECTURE.md.
Repository layout
| Path |
What |
docs/ |
Architecture, the pinned RomM API contract, auth & sync protocol, config, security, dev environment |
sysmodule/ |
sys-rommsync — the background engine: pairing, the download queue, the sync tick, IPC |
overlay/ |
ovl-rommsync — the libultrahand overlay: status, settings, sync, library and downloads, conflicts, pairing, log |
switch.mk |
Shared devkitPro rules for both Switch targets |
core/ |
The portable engine — auth, sync, downloads, config, state. Builds and is tested natively. |
server/ |
API snapshot (source of truth), contract-probe script, and the docker RomM test fixture |
scripts/orca/ |
Per-worktree provisioning: setup.sh gives a worktree its own ports, RomM, seeded fixtures and a ready-to-run build; archive.sh and reap.sh take stacks down |
ISSUES.md |
The full milestone + issue backlog |
scripts/create_issues.sh |
Creates the GitHub milestones/labels/issues via gh |
CLAUDE.md |
Working agreement for agents and contributors — rules, commands, PR flow |
Getting started (contributors)
Read, in order: docs/WORKFLOW.md (how work happens here —
this project is built by agents in parallel worktrees, and the loop is worth
understanding before the code) → docs/ARCHITECTURE.md →
docs/API_CONTRACT.md →
docs/SYNC_PROTOCOL.md →
docs/DEVELOPMENT.md →
docs/TESTING.md. Then start with milestone M0 — it builds
the off-console test harness (host + real docker RomM) that every later milestone
is developed and proven against before any hardware.
Quick start in a fresh clone or git worktree add (Orca runs the first line
itself, through orca.yaml):
./scripts/orca/setup.sh # ports, fixtures, build, venv, this worktree's RomM
ctest --test-dir build --output-on-failure
The two Switch targets are built separately, with devkitPro rather than CMake
(see docs/DEVELOPMENT.md); nothing built there
is ever run before the hardware gate in M8:
docker run --rm -v "$PWD:/work" -w /work devkitpro/devkita64:20260219 \
bash -lc 'make -C sysmodule && make -C overlay'
License
rommsync-nx’s own code is MIT (LICENSE), and so is the sysmodule
binary. The overlay binary, ovl-rommsync.ovl, statically links
libultrahand, which is GPL-2.0, so it is distributed under the
GPL, version 2. Every release zip carries both
texts and THIRD_PARTY_NOTICES.txt — the licence and source of every library
either binary links — under config/rommsync/, and its release notes link the
tagged source. Why each licence is the one taken:
docs/LICENSING.md.
Credit / prior art
评论