Skip to content

Engine pin: seedds/nxnative 641d1480021a (52 commits ahead) - #598

Merged
v0lumehi merged 6 commits into
mainfrom
v0lumehi/engine-bump-1.1.0
Nov 3, 2026
Merged

v0lumehi merged 6 commits into
mainfrom
v0lumehi/engine-bump-1.1.0

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

The engine bump for release candidate v1.1.0-rc1 (RELEASING.md, "Cutting a candidate", step 1). It moves .upstream-ref from 65501fb to 641d1480021a (seedds/nxnative main on 2026-11-03, 52 commits ahead). Another change needs the newest engine for Switch 2 support, so this is time-critical. A pin bump touches only patches/, so it does not wait 48 hours if @LNPANDY and I agree here.

What and why

Fixes #550
Fixes #551

Both issues come from the nightly job. bump stopped at 0001-runtime-profile.patch (conflict in dm/host/tests/Makefile, upstream added the t_ue_heap_span rule next to our t_fpslock line). The daily check also saw 0053-runtime-profile-every-site.patch fail, most likely only because it builds on 0001. The host build error in #551 (depthContentOffsetX of MTL4FXTemporalScaler) comes from the Xcode on the runner and not from the pin. I did not look into it further.

What I did

python3 tools/engine.py bump --to 641d1480021a57840b7acc15f92cbd86ecfae611, resolved the conflicts in its worktree with git am --continue, then tools/engine.py refresh <worktree> --to .... Six patches needed a hand merge, all by keeping both sides:

  • 0001-runtime-profile: dm/host/tests/Makefile, kept upstream's t_ue_heap_span rule and our ../hle_profile.c on the t_fpslock link line.
  • 0003-ios-game-data-folder: front_ios.m and DmIOS-Bridging-Header.h, kept hasLauncher and DataBookmark.h next to upstream's fill, partiallyOpen and DmGameMenu.h.
  • 0031-front-mac-dm-screen: docs/development.md, upstream's rewritten Input row plus our DM_SCREEN sentence.
  • 0049-dm-framework-env-switch-row: docs/env_switches.tsv, both rows (DM_HOME_QUIT* and DM_HUD_PER_LAYER).
  • 0061, 0063, 0064 conflicted because upstream has them, see below.

All other patches applied cleanly. 41 patches before, 38 after the bump, 41 with 0065 to 0067 on main. Every patch file was rewritten by refresh (new context and index lines), no header changed.

Dropped, landed upstream

I read each upstream commit and compared it with the patch. All three were taken by seedds in a reworked form (the upstream PRs are closed, not merged, which is how seedds takes a PR).

Patch Upstream PR Upstream commit Check
0061-ios-adapt-gameplay-to-duo-portrait-and-tabletop seedds/nxnative#683 e2fadf2 The same files, the Duo harness files (dm/ios/tests/duo/...) apply as identical added files. DuoHarnessTests.m, DmLayout.h, front_ios.m differ, because upstream merged it with #1083 and added the in-game menu.
0063-ios-picture-fit-or-fill-for-screens-that-are-not seedds/nxnative#1083 e2fadf2 DM_PICTURE_FIT (settings row, env row, dm_layout_picture) is in the commit.
0064-mac-host-quit-a-game-by-holding-the-controller-s seedds/nxnative#1084 48888df home_quit.h, home_quit_mac.h, t_home_quit*, DM_HOME_QUIT*. Only comment wording differs.

Patches 0065 to 0067 (touch controls) landed on main after I branched. I merged main in (no rebase) and ported them to the new pin by hand, because upstream's DmGamepad.m now has the in-game menu button (DmMenuButton, menuCenter) where the patches hooked the old layout button. The geometry (DmPadGeometry.h) now serves the menu button's position and radius. test_pad_geometry.py passes and DmGamepad.m passes clang -fsyntax-only for the iOS simulator SDK, but nothing was run on a device. Their base pending (on seedds/nxnative#683) is now upstream (e2fadf2), whoever sends them on must change the header to say the base is in the pin. Series is now 41 patches.

Statuses I checked

gh pr view on seedds/nxnative: #386, #670, #793, #797, #991, #886, #888, #955, #485 and #460 are still open, so their forwarded and pending headers stay. #492, #755, #839, #488 and #490 are closed, so fork-only (declined ...) stays. No header needed a change.

Other changes

  • launch.set.DM_UPSCALER, launch.opt.DM_UPSCALER.game and launch.opt.DM_UPSCALER.metalfx in all six frontend/l10n files (upstream's new "Game's upscaler" row, 85468b6). zh is mine. sv, de, fr and it are machine-translated and need a native look. The row is shown only for games whose shader map has agl's NDSR network (Donkey Kong Bananza, Splatoon Raiders). The French and German tests list DM_UPSCALER.metalfx as an untranslated name, like DM_PRESENT_UPSCALE.metalfx.
  • tools/l10n_shell_catalogs.py and test_launcher_texts.py --write: the ShellUI catalog and launcher_texts.txt.
  • README*.md, GAMES*.md, frontend/README.md: the links follow the pin (relink, and the gallery of sync).

Switch 2

Short version: Switch 2 games already ran on the old pin. There is no Switch 2 switch, profile key or setting. A Switch 2 game is an ordinary profile. Read from the commits only, nothing here was run.

  • Already at the old pin: Donkey Kong Bananza 040074A01BF12000, Splatoon Raiders 0400380020056000, Fire Emblem Fortune's Weave 04007EF01F8AE000. Their profiles say "A Switch 2 game, SDK built for the Switch 2 (Ounce), NVN2". The host sees it from the sdk module (loader.c looks for spec: Ounce), and NVN2 reports another API version (hle_nvn.c nvn_api, optional profile key device_api).
  • New file format .nup (423a674, Switch 2 controllers on the Mac: connect upstream's Bluetooth support in controllers_mac.m #1048, review fix aa9fa76, 8c80f39, README cfcef15). Spec: https://github.com/a55uka/nup (SPEC v1). One file with base, updates by version and DLC by title ID, each as exefs/ and romfs/, files raw or one zstd frame each, a SHA-256 per file. No encryption, no prod.keys. May carry a NACP and an icon.
    • New tool scripts/pack_nup.py <game.nup> [--version N] [--work-dir DIR], exit 1 on error. Needs the Python zstd module (compression.zstd on Python 3.14 and later, else backports.zstd).
    • scripts/build_ipa_from_nsp.py takes a .nup file, or a folder that holds one, calls pack_nup.py, and goes on. Only for a game that already has a profile.
    • Output under <folder of the .nup>/<title ID>_build (or --work-dir): extract/v<version>/ExeFS/, extract/v<version>/RomFS.img (one image from dm/tools/romfs_image.py, never unpacked), control.nacp and icon.jpg when present, aoc/<index>.img per DLC (the host's DM_AOC_DIR). Without a NACP the app name comes from the profile.
    • Files: scripts/pack_nup.py, scripts/build_ipa_from_nsp.py, dm/tools/romfs_image.py, dm/tools/tests/test_nsp_nup.py, docs/development.md, README.md.
  • New Switch 2 profiles: Pokémon Pokopia 0400A3A01EE4C000 (03d92a9, update v655360 only, the base may be an empty placeholder), Hyrule Warriors: Age of Imprisonment 04003F40232DE000 (d70ee90, 3ace3df, b2bdcbc, 641d148, update v196608, built from a NUP, SDK 20.5.15). Its profile says it reaches the first field on a Mac with a 16.6 ms median frame and "No IPA has been built". Pokopia also says no IPA.
  • Profile keys in use: mem_reserve 0x270000000, app_pool 0x240000000 (the 9 GB layout), pad_layout full, romfs_marker, zip_store. Fire Emblem gets fps_target 60 (0a05fb1, df60f63). Donkey Kong Bananza gets gpu_timestamps segment (12915a3, Nintendo Welcome Tour #1003) so its dynamic resolution holds 30 fps in heavy areas.
  • Settings row DM_UPSCALER choice game=Game's own,metalfx=MetalFX game DM_GAME_UPSCALER_N!=0 (85468b6, Controller mapping: draw the connected controller (per-model diagrams, PlayStation light bar and touchpad, later a 3D model that follows the gyro) #1086). Shown for games whose shader map holds agl's NDSR network. MetalFX replaces the game's NDSR dispatch with MetalFX's spatial scaler (nvn_mtl.m up_mfx_encode). The same commit makes NVN2's DLSS call work on the encoding thread (t_dlss_mfx.m). Env row DM_UPSCALER (player).
  • SDK calls answered for Switch 2 SDKs (d70ee90): nn::chat::Initialize, IsChatting, SetScreenSharingMode (GameChat ready, no chat), oe::IsLanguageSelectionLimited (no limit), oe::SetGraphicsTargetFrameRate (hooked at gs::sdk::SetGraphicsFrameLengthMode). Files dm/host/hle_misc.c, dm/host/hle_oe.c, docs/reference/services.md.
  • Not there: no switch that turns Switch 2 mode on, no new way to start a game. A .nup of a game without a profile is refused.

What players will notice

From upstream's commit titles only. I did not play any of it.

New games and profiles (README says "plays on the Mac" for each, no iPhone build is claimed for the Switch 2 ones):

Engine and launcher:

The shader chain moved (DMSH_CHAIN e047be1b6829 to 95ba69b5403e, 11 commits). Every game built with the old chain gets its shaders rebuilt on the next build (#449). Worth a line in the release notes.

Game profiles changed: new 01002DA013484000, 01007A3009184000, 0400A3A01EE4C000, 04003F40232DE000. game.tsv changed for Donkey Kong Bananza (gpu_timestamps segment), Fire Emblem Fortune's Weave (fps_target 60), Taiko Risshiden V DX and Balatro (comment only). README changed for about a dozen more. No game.tsv row of an existing game was removed.

The candidates table of tools/engine.py candidates lists 9 rows and 17 commits (chain moves, the [RED] text, the NUP script, the Home button doc). I did not fill a Handled column, the rows above say what each one is.

Checked

  • Tests: python3 tools/engine.py check (ok, 41 patches apply cleanly to 641d1480021a), python3 tools/engine.py sync (ok), python3 -m unittest discover -s tools/tests (202 tests, OK), .github/scripts/tests (158, OK), frontend-qt/tests (238, OK, 14 skipped), cd frontend && swift test (711 tests, 23 skipped, 0 failures). test_env_switches.py passes at this pin, the DM_FONT_CACHE and DM_SHARED_FONT_SMALL rows are not missing any more, so I added none.
  • Test for a fix: the failing tests were test_launcher_texts (two cases) and the French and German localization tests, all for the new DM_UPSCALER texts. They pass now.
  • Visual QA: none. The Mac launcher shows the new row only for games with the NDSR network, and I did not capture it.
  • Run on a device or Mac: not done. I did not build the host (make in engine/dm/host), build an IPA, or start a game. The 0003 hand merge of front_ios.m and the 0001 hand merge of the host test Makefile were not compiled. Upstream's own tests and the iOS Duo harness were not run. The host build error in Daily health check failed 2026-11-03 #551 may still show on CI.

Screenshots

None, no visible change except one new setting row for two games, not captured.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository: the change is patches/ and .upstream-ref, tools/engine.py check passes
  • No engine fix here, so nothing new goes to seedds/nxnative
  • No launcher view changes except the l10n texts of a setting the engine shows
  • No keys, game files or data extracted from a game in the change

Drops three patches that landed upstream: Duo layout (0061, seedds/nxnative#683),
picture fit (0063, #1083) and the Home button quit (0064, #1084). Refreshes the
rest for the new pin. Adds the launch.set.DM_UPSCALER texts in all six languages.
@v0lumehi v0lumehi added this to the v1.1.0 milestone Nov 3, 2026
@v0lumehi v0lumehi added documentation Improvements or additions to documentation enhancement New feature or request launcher The NX2Apple launcher app windows Windows (the Qt front end) patch-queue Changes the patch queue or the upstream pin ci Workflows and repository tooling labels Nov 3, 2026
@github-actions github-actions Bot added the ios iPhone or iPad label Nov 3, 2026
Patches 0065 to 0067 (touch controls) are ported to the new pin: upstream's DmGamepad.m now has the in-game menu button, so the layout button hooks of the patches are gone.
…g Home (#421)

0068 ends the gear's in-game menu with Quit <game> and opens a quit
prompt over the game, the Mac's in look, from it or from a 2 s Home
hold. Quitting flushes the cloud saves and ends the app as on SIGTERM.
One game runs per process, so the player opens the app again.
Forwarded as seedds/nxnative#1115.

0069 makes the shell compile GameMenu.swift, which the gear needs. At
the 641d148 pin the shell does not link without it.
Every game gets DM_HOME_QUIT_TEXT in the player's language, as the Mac
launcher passes it for its Home button prompt. The engine shows the
prompt for Quit in the in-game menu and for a held Home button. Texts
in all six languages, the note in it, sv, de and fr machine-translated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows and repository tooling documentation Improvements or additions to documentation enhancement New feature or request ios iPhone or iPad launcher The NX2Apple launcher app patch-queue Changes the patch queue or the upstream pin windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily health check failed 2026-11-03 Upstream sync blocked at e58e446

1 participant