Repository navigation
Sync: protect the launcher-without-game-data edit in front_ios.m (main's sync test is red) - #101
Merged
Merged
Conversation
…n's sync test is red) Commit 420047d edited dm/ios/Sources/front_ios.m, which no patcher carried, so test_no_fork_edit_is_unprotected failed on main and the next sync would have reverted the edit. Its hunks in main.m (set_data_env, dm_locate_game_data, the boot block) and Launcher.swift (the pick's note) were in already-patched files, but their patchers produced the text from before 420047d, so those hunks would have been lost too. Now front_ios.m has a patcher and the main.m and Launcher.swift patchers produce the current text; on the last sync base all three patched files equal the tree byte for byte.
This was referenced Oct 27, 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
test_no_fork_edit_is_unprotectedfails onmain:dm/ios/Sources/front_ios.mdiffers from the last sync base and is in none of OURS / PATCHED / DROPPED. The edit is 420047d ("No game data yet boots into the launcher, and Play (re)locates the data"). The same commit also changedmain.mandLauncher.swift, which were already carriers, but their patchers still produced the text from before 420047d, so a sync would have dropped those hunks silently (the test only sees whole files).PATCHEDentry forfront_ios.m(4 anchored hunks, markerint dm_locate_game_data(void);).patch_main_mgains theset_data_env/dm_locate_game_datafunction and the new boot block (marker nowstatic int set_data_env); the pick's note string in the Launcher.swift patcher is the new one.Checked
python3 -m unittest scripts/tests/test_sync_patchers.py: all 8 pass, againstseedds/mainand the last sync base.Scope
scripts/sync_upstream.py(a fork-only file) changes