Skip to content

Sync: protect the launcher-without-game-data edit in front_ios.m (main's sync test is red) - #101

Merged
LNPANDY merged 1 commit into
LNPANDY:mainfrom
v0lumehi:sync-front-ios
Oct 28, 2026
Merged

LNPANDY merged 1 commit into
LNPANDY:mainfrom
v0lumehi:sync-front-ios

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

What and why

test_no_fork_edit_is_unprotected fails on main: dm/ios/Sources/front_ios.m differs 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 changed main.m and Launcher.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).

  • New patcher and PATCHED entry for front_ios.m (4 anchored hunks, marker int dm_locate_game_data(void);).
  • patch_main_m gains the set_data_env / dm_locate_game_data function and the new boot block (marker now static int set_data_env); the pick's note string in the Launcher.swift patcher is the new one.
  • The edit itself is unchanged.

Checked

  • python3 -m unittest scripts/tests/test_sync_patchers.py: all 8 pass, against seedds/main and the last sync base.
  • On the last sync base, the three patched files equal the tree's files byte for byte.

Scope

  • Only scripts/sync_upstream.py (a fork-only file) changes
  • No keys, game files or data extracted from a game

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants