Repository navigation
Switch 2 (2/8): Mac launcher builds a game from its folder - #604
Merged
Merged
Conversation
Choosing or dropping a folder with base/exefs/main.npdm reads it as one game (GameFolder): the rows show the title ID, the newest update and the DLC folders, the keys row says no keys are needed, and the script gets the folder as its input with no -k. The launcher refuses the folder before the build, with the reason, when the engine has no pack_dump.py or no profile for the game, or when a piece of the layout is missing. The library keeps the folder, so Build again reads it anew.
5 of 6 tasks
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix or feature
Part of #445, closes the Mac part of #512. Stack PR 2 of 8, on #603.
What and why
Choosing or dropping a Switch 2 game folder showed "No NSP/XCI in this folder", and the build needed
prod.keys. Now:GameFolder.isCandidate:base/exefs/main.npdm, orexefs/main.npdmone level too high), before walking its tens of thousands of files.main.npdm, the newest update (the one the script packs), the DLC folders. The keys row says no keys are needed and shows ready. Only the base row has Clear, which clears the whole folder. Choosing or dropping a package afterwards goes back to the package rows.scripts/pack_dump.py, or no profile for the game in the engine (the script packs a folder only for a game with a profile).-kand no staging. The work folder and the app are named after the title ID (<folder>/040074A01BF12000_build,040074A01BF12000.app), as the script's own default. The shared app gets the profile's name, since a folder has no control data.New strings in zh, en, sv, de, fr and it. The sv, de, fr and it texts are machine-translated. A native speaker should look.
Checked
cd frontend && swift testpasses,frontend-qtunittest passes,tools/l10n_shell_catalogs.py --checkpasses. New:GameFolderStoreTests(the rows, no keys, the script's command with no-k, the refusals, a package after a folder, a folder of packages as before) andGameFolderCaptureTests.NX_LAUNCHER_CAPTURE_DIR=<dir> swift test --filter testRenderLauncherForVisualQAGameFolder, in English, German and Chinese, with a synthetic folder (an NPDM with only a program ID, empty RomFS folders) and a stand-in engine tree.pack_dump.py), not checked here.Screenshots
Builds page with Donkey Kong Bananza's folder chosen. Before:
After, in English, German and Chinese:
Scope
dm/,scripts/,docs/,ref/) is added to the repository: a change there is a patch inpatches/(a commit inengine/, thentools/engine.py export, andtools/engine.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#..., orpendinguntil that PR is open