Repository navigation
Sync upstream 5d2bf73f → a662f29e (64 upstream commits) - #223
Merged
Merged
Conversation
Bumps the pin to seedds/nxnative a662f29. Drops cloud-saves and lm3-depth-mode, which upstream took (123c7ff and ac9598a). Refreshes runtime-profile, ios-game-data-folder, games-md-gallery, nsp-title-id-from-package and cheats-engine against upstream's new code. The engine's cloud saves read DM_SAVE_SYNC=icloud as iCloud Drive/nxnative Saves, where the fork's read it as NX2Apple Saves. CloudSavesMigration gives a game's Mac env.txt that says icloud the explicit path of an existing NX2Apple Saves folder, so its Mac and iPhone apps stay in one folder. Nothing is copied, moved or deleted. scripts/patches.py now reads an RFC 2047 subject (a patch whose subject has a non-ASCII character), so refresh can match its commit.
Collaborator
Author
v0lumehi
force-pushed
the
sync/upstream-a662f29
branch
from
October 29, 2026 20:59
ef66e77 to
6137483
Compare
Collaborator
Author
|
@LNPANDY merged with all checks green. Two lines for the release notes:
|
This was referenced Oct 29, 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.
What and why
Bumps the upstream pin from
5d2bf73fto seedds/nxnative maina662f29ee791(64 upstream commits, range seedds/nxnative@5d2bf73...a662f29). The nightly bump was blocked by five patches, so this one is by hand withpatches.py bumpandrefresh.Upstream highlights: cloud saves (
123c7ff0, see below), 13 new game profiles (EA SPORTS FC 27, Need for Speed Hot Pursuit Remastered, Team Sonic Racing, Well Dweller, SteamWorld Dig, Dig 2, Heist and Heist II, Subnautica and Below Zero, Streets of Rage 4, Baba Is You, Mario Party Superstars 1.1.1), NVN texture, alpha test and early fragment test fixes, a chain-built alpha test library, Capstone 5 pinned, Frostbite frame lock, nacp and RomFS input checks, regress.py capture and replay per game.Shader chain:
DMSH_CHAINchanges from373efc7add5ftof3ceca86cac5. Every game's shaders rebuild on the next build.Dropped patches (upstream has them)
0025-cloud-savesis123c7ff0upstream (Cloud saves: a game's Mac and iPhone apps share one save through an iCloud Drive folder seedds/nxnative#617), with changes (below).0026-lm3-depth-modeisac9598adupstream (Luigi's Mansion 3: declare depth_mode zero seedds/nxnative#580).Refreshed patches
0001-runtime-profile: conflicts inhle_fpslock.canddm/host/tests/Makefile. Upstream added Frostbite frame locks (fb_find) and new test targets (t_save_sync,t_uecvar,save_sync.cin thet_fsfamily). Kept upstream's code and re-applied onlydm_profile()->fps_targetandhle_profile.cin the test link lines.0003-ios-game-data-folder: conflicts in the iOS launcher,main.m,front_ios.m, the bridging header,project.ymland the startup test. Upstream now has its ownCloudSaves.mand bridging header, and a letter-case-tolerantromfs_document_images. Kept both: the bridging header importsCloudSaves.handDataBookmark.h,romfs_locatetries the picked location and the per-game folder first and then walks upstream'sromfs_document_images, the launcher showsGameDataSectionand upstream'sCloudSavesSection(the picker takestypes, ours passes.item). The per-game DLC lookup (Slim iOS build: selected DLC reaches the game folder and the app finds it #212) and the cheats folder (DM_CHEATS) lines are unchanged.DataBookmarknow holds only the game data pick, the cloud saves bookmark is upstream's.0024-games-md-gallery: upstream dropped IPA sizes from the gallery, made every name a link and uses<small>. Took upstream's cell and kept only the output file (GAMES.md).GAMES.mdis regenerated.0027-nsp-title-id-from-packageand0028-cheats-engine: additive conflicts inProgram.cs,docs/reference/packing.mdanddocs/frontends.md, kept both sides.scripts/patches.py(the tool's own file) now decodes an RFC 2047 subject.refreshcould not match the cheats patch, whose subject has anè, to its commit. Test added.All other patches applied cleanly.
patches.py checkpasses (20 patches).Cloud saves
How a player's choice is stored today:
cloudSaves.folderin the app's preferences, passed on bylauncher.casDM_SAVE_SYNCcloudSavesBookmarkin UserDefaults, resolved to a path and put intoDM_SAVE_SYNCCloudSaves.muses the same key, so existing bookmarks still resolveDM_SAVE_SYNC=icloudenv.txtor the launch environment (the iPhone app answers it with "off")NX2Apple Savestonxnative SavesThe NX2Apple launcher (
frontend/) never setsDM_SAVE_SYNCorcloudSaves.folder. The file format is the same (<folder>/<title ID>/save.dmsync,<DM_SAVE>.sync,<DM_SAVE>-backups), checked by diffing 0025'ssave_sync.cagainst upstream's: only the folder name differs, plus a limit of 10 backups per side, which is upstream's addition.Cases:
icloudand iPhone on a bookmark toNX2Apple Saves: this is the only case the rename could split.CloudSavesMigration(new,frontend/) runs when the launcher opens and before each Play. For a game whoseenv.txt(~/Library/Application Support/nxnative/<title ID>/env.txt) hasDM_SAVE_SYNC=icloudas its effective line, and wheniCloud Drive/NX2Apple Savesexists, it writes that folder's path in place of the keyword (with a#comment above, which the launcher ignores). Both apps then stay in the folder they share. Nothing is copied, moved or deleted, so no save can be lost and the old folder stays as it is. Older Mac apps accept an explicit path too, so the order of launcher and app updates does not matter.icloudand noNX2Apple Savesfolder: the Mac never synced through the keyword, the keyword keeps its new meaning (nxnative Saves).nxnative Saves: the migration still points it back toNX2Apple Saveswhere the iPhone is. The engine's sync then decides by hash and date, the newer save wins and the other is kept in-backups. Thenxnative Savesfolder is left alone.DM_SAVE_SYNC=icloudin the launch environment (a shell) cannot be migrated, such a player writes the path or lets the window choose the folder. Not something the launcher or docs ever offered besidesenv.txt.I chose to keep the player's folder with an explicit path instead of copying
NX2Apple Savesintonxnative Saves: a copy only helps when both devices switch together, and the iPhone cannot be told from the Mac. This needs no engine patch.Docs: the upstream
docs/settings.mdanddocs/env_switches.tsvnow saynxnative Saves(vendored, from upstream). Our README, GAMES and CHANGELOG do not mention the old folder. The Saves sheet andSaveTransfer.swiftare ours and stay, upstream's comments just no longer name them.@LNPANDY for the release notes: cloud saves now come from the engine. Existing players keep their folder, whether chosen in the Mac window or on the iPhone. The
icloudkeyword in a Macenv.txtis turned into the path ofNX2Apple Savesfor players who have that folder. Newicloudusers getnxnative Saves. Also new in the engine: the newest 10 backups of each side stay, older ones are removed.Checked
python3 scripts/patches.py checkok (20 patches, 2398 files),python3 -m unittest discover -s scripts/tests(40),dm/tools/testsall 649 ok (17 skipped),dm/ios/tests42 ok,python3 -m unittest discover -s frontend-qt/tests172 ok,cd frontend && swift build -c release && swift test434 tests ok (7 new for the migration),make -C dm/host GAME=010015100B514000andmake -C dm/host/tests GAME=010015100B514000 runok,GAME=010015100B514000 python3 dm/ios/tools/compile_check.py187 files 0 failed. The iOS Swift sources (Launcher.swiftwith the bridging header, which compile_check skips) type-check against the iPhoneOS 27.1 SDK.lint_python.pywith the lint venv, compared with the tree before the bump: the new findings are in upstream's new and changed files, none in ours beyondscripts/patches.py(fixed).scripts/regress.py impact 5d2bf73f..a662f29ee79: 4 games affected (Hades, Breath of the Wild, Pokémon Scarlet, Tears of the Kingdom), 109 profiles have no usage manifest.regress.py check --gameswas not run: there is no baseline under/Volumes/NX/harness(the folder is empty).Scope
patches/andpatches.py checkpassesfrontend/