Skip to content

Patch queue: drop the ROMFSARC reader and the touchpad experiment (proposal) - #162

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/drop-romfsarc-touchpad
Oct 29, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/drop-romfsarc-touchpad

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Proposal, 48h. @LNPANDY decides.

What the two patches did

  • 0002-romfsarc: the old ROMFSARC shard-archive reader in dm/host (romfs_arc.c/.h, dm/tools/romfs_arc.py, t_romfs_arc.c, docs/ROMFS_ARCHIVE.md, the archive handles and @romfsarc paths in hle_fs.c, Makefile lines).
  • 0013-touchpad-geometry: a fork experiment (touchpad_geometry.h, t_touchpad_geometry.c, a Makefile line) with no player-facing function and no hook in the host.

Why they can go

  • Upstream's DMROMFS1 image (romfs.img, romfs.id) replaced the archives, and neither front end produces archives any more (both moved to romfs_image.py). The reader's only remaining use is archives players made long ago.
  • Both patches conflict on the nightly bump.

Cost for players

An iPhone that still holds an old shard archive (romfs.idx + romfs.NN) needs the game data sent again once, as a new romfs.img through the launcher. The app treats such a folder as "no game data" and now names the action in both places a player or a bug report can see it:

  • Launcher, Game data section footer: "The game data here is an old shard archive (romfs.idx), which this version no longer reads. Re-send the game data as romfs.img from the launcher."
  • Documents/log.txt: boot: <folder> holds an old RomFS shard archive (romfs.idx), which is no longer read. Re-send the game data as romfs.img from the launcher

Macs and anyone on romfs.img are unaffected.

What changed

  • patches/series, the two patch files removed, dm/fork_patches.txt and the vendored tree regenerated with patches.py apply.
  • main.m, Launcher.swift and DmIOS-Bridging-Header.h (folded into 0003): romfs_dir_ok drops the romfs.idx branch, logs the old-archive case and keeps the message that the launcher's Game data section shows.
  • Windows build (frontend-qt/.../win/build_app.py, test_win.py): romfs_arc.c removed from the expected source list (would have broken the Makefile match).
  • Stale romfs_arc.py strings in both front ends' localizations and a comment, README/README.zh-CN "older archives still load" bullets and BUILDING/BUILDING.zh-CN now say they are not read, ROADMAP and launcher-c docs (in 0015), issue-form placeholders.

Not changed

LICENSE lines 4-7 and NOTICE lines 10-11 still name the removed romfs_arc files in @LNPANDY's copyright line. @LNPANDY should decide whether to reword them.

Release-note one-liner

"Old RomFS shard archives (romfs.idx) are no longer read. If your iPhone still has one, send the game data again once from the launcher."

Bump (patches.py bump --dry --to seedds/main, upstream at e4292dd)

  • origin/main now: 6 conflicting patches, 0002 among them
  • This branch: 5 conflicting patches (0001, 0003, 0024, 0025, 0026), 0002 and 0013 gone

Checks run

Rebased onto origin/main (ab7de98), run in a clean worktree:

  • patches.py check: ok, 19 patches give the committed tree (2245 files)
  • python3 -m unittest discover -s scripts/tests: 39 tests ok
  • make -C dm/host GAME=010015100B514000 and make -C dm/host/tests GAME=010015100B514000 run: both exit 0
  • GAME=010015100B514000 python3 dm/ios/tools/compile_check.py: 184 files, 0 failed
  • swift build -c release and swift test in frontend/: 359 tests, 12 skipped, 0 failures
  • python3 -m unittest discover -s frontend-qt/tests: 155 tests ok, 11 skipped
  • python3 dm/tools/tests/test_docs.py: 11 tests ok

@LNPANDY

LNPANDY commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Direction approved, but the branch conflicts with the cloud-saves and LM3 patches that landed (both touch dm/host/Makefile SRC and hle_fs.c's archive handles) — a merge does not apply cleanly. Please rebase the branch onto current main (git fetch origin && git rebase origin/main), resolve by removing the romfsarc and touchpad content as the PR describes, and update patches.py check (the series will drop 0002 and 0013). Then it merges as a clean removal.

One ask on the cost note: players with old shard archives get a clear log line and a launcher prompt — please make sure that message names the action ('re-send the game data as romfs.img via the launcher') rather than only describing the state.

@v0lumehi

Copy link
Copy Markdown
Collaborator Author

@LNPANDY I see #195, I can rebase. Or you just rebase yourself and push into my branch

@v0lumehi
v0lumehi force-pushed the v0lumehi/drop-romfsarc-touchpad branch 2 times, most recently from 6d9d819 to bcb8a5e Compare October 29, 2026 17:14
Removes 0002-romfsarc (the shard-archive reader in dm/host, its tool, test
and doc) and 0013-touchpad-geometry (a header and test with no hook in the
host). Upstream's DMROMFS1 image replaced the archives and neither front end
produces them any more.

main.m (in 0003) no longer accepts romfs.idx as game data: such a folder is
reported as having no game data. The log line and the launcher's Game data
section say to re-send the game data as romfs.img from the launcher.

The Windows build's source list, two stale strings in both front ends, the READMEs, BUILDING and the issue-form placeholders follow.
@v0lumehi
v0lumehi force-pushed the v0lumehi/drop-romfsarc-touchpad branch from bcb8a5e to c6c960a Compare October 29, 2026 17:14
@v0lumehi

Copy link
Copy Markdown
Collaborator Author

Rebased onto current main (ab7de98). 0002 and 0013 are dropped from the series, patches.py check is green, and the host build, host tests, iOS compile check, Swift and Qt tests pass (details in the PR body).

The old-archive message now names the action. The launcher's Game data section shows "The game data here is an old shard archive (romfs.idx), which this version no longer reads. Re-send the game data as romfs.img from the launcher." and the log line says the same. The change is folded into 0003 (main.m, Launcher.swift, bridging header).

@v0lumehi
v0lumehi merged commit c5f264f into main Oct 29, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/drop-romfsarc-touchpad branch October 29, 2026 17:24
@v0lumehi

Copy link
Copy Markdown
Collaborator Author

@LNPANDY merged as you approved: 0002 and 0013 are out of the series, and patches.py check is green. For the release notes, players with an old shard archive (romfs.idx) on the iPhone now see the launcher ask them to re-send the game data as romfs.img, and the app logs the same. The LICENSE and NOTICE lines that name the removed romfs_arc files are still yours to reword.

v0lumehi added a commit that referenced this pull request Oct 29, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
v0lumehi added a commit that referenced this pull request Oct 30, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
v0lumehi added a commit that referenced this pull request Oct 30, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
v0lumehi added a commit that referenced this pull request Oct 30, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
v0lumehi added a commit that referenced this pull request Oct 30, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
v0lumehi added a commit that referenced this pull request Oct 31, 2026
The window header no longer shows the product name or the green icon tile, and the subtitle that
still mentioned archive shards (removed in #162) is gone from the Swift string table and the
generated Qt table. Only the language button stays in the header.
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