Skip to content

Switch 2 (5/8): a failure row for keys older than the game - #607

Merged
v0lumehi merged 2 commits into
v0lumehi/switch2-labelfrom
v0lumehi/keys-older-row
Nov 3, 2026
Merged

v0lumehi merged 2 commits into
v0lumehi/switch2-labelfrom
v0lumehi/keys-older-row

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

Follow-up of the engine bump #598, which lists it as open. Stack PR 5 of 8, on #606. Not Switch 2 itself, but the same new pin brings it.

What and why

At 641d148 (seedds/nxnative 3104c0a) a build stops at once when prod.keys lacks the master key the game needs. nx_extract exits with code 6 and prints a new [RED] line that names the key and the firmware it came with ("the keys are older than the game"). No failure row matched it, so the launcher showed the raw line.

Now the Mac and the Qt launcher show "Your prod.keys file is older than the game.", say to take the keys again from an updated console, point at the log for the key and the version, and offer Choose keys file, the same as the missing-keys row. The fixture holds the script's real line, and the existing test checks the fragment is still in dm/tools/nx_extract/Program.cs.

The launcher's own key check (KeyCheck) already warns about old keys before a build for the files it can read. This row covers what it cannot read.

New strings in zh, en, sv, de, fr and it. The sv, de, fr and it texts are machine-translated.

Checked

  • Tests: cd frontend && swift test passes, frontend-qt unittest passes (the two tables are compared). New: the keys.old fixture row, the new kind in the failure captures.
  • Test for a fix: not a fix.
  • Visual QA: testRenderBuildFailureStatesForScreenshots, English and Chinese.
  • Run on a device or Mac: not run. I have no game files or keys to make nx_extract stop this way.

Screenshots

The new row (new, no before: the card showed the script's last line):

keys old en
keys old zh

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository: a change there is a patch in patches/ (a commit in engine/, then tools/engine.py export, and tools/engine.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: this PR's patch says forwarded seedds/nxnative#..., or pending until that PR is open
  • A change to a launcher view has before and after screenshots above
  • No keys, game files or data extracted from a game in the change or the attachments

The engine at 641d148 stops a build at once when prod.keys lacks the
master key the game needs (nx_extract exit code 6, a new [RED] line that
names the key and the firmware). The launcher showed that line raw. The
Mac and the Qt launcher now say the keys are older than the game and
offer Choose keys file.
@v0lumehi v0lumehi added this to the v1.1.0 milestone Nov 3, 2026
@v0lumehi v0lumehi added enhancement New feature or request launcher The NX2Apple launcher app mac Mac windows Windows (the Qt front end) labels Nov 3, 2026
@v0lumehi
v0lumehi added this pull request to stack #611 November 3, 2026 18:11
@v0lumehi
v0lumehi merged commit 52df32e into main Nov 3, 2026
18 of 32 checks passed
ThisIszas pushed a commit to ThisIszas/NX2Apple that referenced this pull request Nov 4, 2026
Carries today's upstream fixes, including the Mac pipeline archive stamped for
this Mac's major system version (8e0916b, issue LNPANDY#673) — a Metal 4 pipeline
archive only opens on the major version it was made for, so an app packed here
compiled every base on its first start — the sampler border colours Metal lacks
(6670f32, LNPANDY#607), same-pass feedback snapshots without per-game lists
(c692ba0, which drops Wonder's feedback_snap key), NVN logic operations
through a chain-built library (a68bfd9, LNPANDY#643), NSP title IDs from the package's
own meta NCA (LNPANDY#666), and the removal of stale shader library folders (LNPANDY#682).

Two fork patches landed upstream and are dropped: nsp-title-id-from-package
(LNPANDY#666) and nsp-script-remove-the-shader-libraries-of-older (LNPANDY#682).

Resolved in the queue:
- 0005-nsp-dotnet-home: keep upstream's new contextlib import beside the
  patch's pwd import.
- 0009-mac-keymap: upstream rewrote the same header comment (labels from
  pad_apple.h); the code hunks applied cleanly, the comment was merged by hand.
- 0018-nsp-dotnet-root-verify, 0028-cheats-engine, 0031-front-mac-dm-screen:
  applied by hand (upstream moved the surrounding lines); cheats keeps both
  dm_rec_finish and dm_cheats_exit in the shutdown path.
- 0008-bc-cpu-decode: tex_bc_cpu classified in docs_patches.py SWITCH_BINDING,
  which the doc generator now requires for every profile key.
- GAMES.md: gallery regenerated (two new upstream gallery rows).

patches.py check: 21 patches apply to ee6648c and give the vendored tree.
v0lumehi pushed a commit that referenced this pull request Nov 4, 2026
The seven texts of the Switch 2 games (#603-#607) came in as a machine
translation with "motore". The rest of it.json says "engine" (l'engine,
masculine), as chosen in #528, so the app used two words for one thing. Now
"engine" is the word in all 36 texts that name it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@v0lumehi
v0lumehi deleted the v0lumehi/keys-older-row branch November 20, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request launcher The NX2Apple launcher app mac Mac windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant