Repository navigation
Switch 2 (4/8): a Switch 2 mark in the library and a note on the Builds page - #606
Merged
Merged
Conversation
A game whose engine profile is a Switch 2 game gets a "Switch 2" mark in the library, and the Builds page says how far the engine's support goes for the chosen target. No profile key says Switch 2 yet: the launcher reads the profile's first line, which says it for every Switch 2 game. The library folder scan also finds a game folder as one game.
5 of 6 tasks
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. Stack PR 4 of 8, on #605. This changes how the library and the Builds page look, so it starts from #445, which plans the mark and the note.
What and why
Nothing is blocked. The engine builds both targets, and @LNPANDY played Donkey Kong Bananza on an iPhone 17 Pro Max (Switch 2 games: what nxnative supports now and how the launcher integrates it #445). Splatoon Raiders' profile says its memory layout is over iOS's limit for now, which is why the note does not promise more.
641d148names it in its first line, for example# Donkey Kong Bananza (Switch 2, update v458752). In bring-up, soGameFolder.profileIsSwitch2reads that. The04start of the title IDs is not used. An upstream key (console, Switch 2 games: what nxnative supports now and how the launcher integrates it #445 step 6) would be the better source, and the check moves there when it exists.The key art comes from
ArtworkStoreand the engine'sdocs/imagesby name, as for other games. The engine hasdocs/images/donkey-kong-bananza.jpgand the other four.New strings in zh, en, sv, de, fr and it. The sv, de, fr and it texts are machine-translated. "Switch 2" stays as it is in every language and is listed as such in the German and French tests.
Checked
cd frontend && swift testpasses. New:GameFolderTests.testTheProfilesFirstLineTellsASwitch2Game(only the first comment line counts),GameFolderCaptureTests.testTheLibraryScanFindsAGameFolder.testRenderLauncherForVisualQAGameFolderLibraryandtestRenderLauncherForVisualQAGameFolder, in English, German and Chinese. The library "before" is the same capture on PR 3's code.Screenshots
Library, before and after:
Builds page with iPhone / iPad chosen, before and after:
This Mac, German (the longest text):
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