feat(web): apply a local game patch during conversion #24722
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24722"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by WhiteAssassins on 2026-11-21T00:17:20Z.
What
Let users select one local TOML patch when converting a single app from a ZIP or a folder. The browser passes the patch to the existing relinker parser and applies it during conversion. A malformed patch, a patch with no entries, an unmatched target, or mismatched expected bytes stops conversion before packaging.
This adds the local patch picker as a first step toward a catalog picker. The picker is available for single-app conversions.
Tested
CachyOS Linux, Emscripten 6.0.12: built
relinker_weband ranpython3 tools/test_web.py --build <wasm-build>. All 50 web tests passed. The WASM integration checks Linux ELF and Windows PE conversion with synthetic inputs, with a patch targeting either the main executable or a bundled module. It checks that rejected patches return no artifacts. No PS5 title was used.Conventions and
git diff --checkpass. I checked the shared files the overlap tool could not compare. #22984 applies cleanly over this branch. #24378 adds Russian separately and will need the new patch strings if both PRs land.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T00:44:50Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review covered the changed files, and the reported web checks were not run here.
What I ran
1c47b1da5e8ef7400dc679cec4f77e9af7e42c09usingrepo_read.py.relinker_webbuild and 50 passing web tests; those results were not independently verified.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
The browser binds the supplied patch text to conversion options and checks that patch targets match the executable or converted modules at the reviewed head. The worker reads a single selected patch file as UTF-8, enforces its size limit, and passes it through for conversion at the reviewed head.
Not verified
core/relinker/wasm/Bindings.cpp,demo/web/app.mjs,demo/web/i18n.mjs,demo/web/index.html,demo/web/tests/app.test.mjs,demo/web/tests/archive.test.mjs,demo/web/worker.mjs,docs/user/USAGE.md, andtools/test_web.py. The manifest lists all nine changed files as included; none were excluded.To get this to a good state
Nothing is required.