Skip to content

Switch 2 (3/8): stage names of a folder build and the no-profile stop - #605

Merged
v0lumehi merged 2 commits into
v0lumehi/switch2-folder-buildsfrom
v0lumehi/switch2-stages
Nov 3, 2026
Merged

v0lumehi merged 2 commits into
v0lumehi/switch2-folder-buildsfrom
v0lumehi/switch2-stages

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

Part of #445. Stack PR 3 of 8, on #604.

What and why

  • Stage names. A game folder's build has the stages pack v458752 and pack DLC (pack_dump.py through build_ipa_from_nsp.py), and a NUP's build has unpack v196608 (pack_nup.py, new pin). Stage.localizedName knew only extract <name>, so these showed in English in every language. They are in all six languages now, the version kept as the script writes it.
  • The no-profile stop. The script stops with "a dump folder (or a NUP) packs only a game with a profile". PR 2 refuses such a folder before the build. When the script says it anyway (another engine, DM_GAMES_DIR), the Mac and the Qt launcher now show a failure row instead of the raw last line. The fixture holds the script's real line, and the existing test checks the fragment is still in the engine's script.

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 (its table test compares the two tables). New: StageNameTests.testTheGameFolderStagesAreShownInTheLaunchersLanguage, the games.noProfile fixture row.
  • Test for a fix: not a fix.
  • Visual QA: the progress card with NX_LAUNCHER_CAPTURE_DIR (testRenderLauncherForVisualQAGameFolder, German and Chinese). The "before" capture shows the pack stages as the script writes them, which is what the old code showed. The failure row with testRenderBuildFailureStatesForScreenshots.
  • Run on a device or Mac: not run. No Switch 2 dump, no build ran. The stage names are read from the engine's code at 641d148.

Screenshots

Progress card, before and after, German:

stages before de
stages after de

Chinese:

stages before zh
stages after zh

The new failure row (new, no before: the card showed the script's last line). PR 6 adds "or a NUP file" to its first line:

no profile en

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

A game folder's build has the stages "pack <version>" and "pack DLC"
(and "unpack <version>" for a NUP with a newer engine). They showed in
English in every language. They are in the launcher's six languages now.
The script's stop for a folder of a game without a profile gets its own
failure row in the Mac and the Qt launcher.
@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
@v0lumehi
v0lumehi deleted the v0lumehi/switch2-stages branch November 20, 2026 22:37
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