feat(web): relink Unity runtime modules in browser packages #22984
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22984"
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 lazy-dev-77 on 2026-11-18T15:50:02Z.
What
Apps with a Unity ELF plugin directly in
Media/Modules/orMedia/Plugins/previously stopped at browser inspection. Route those plugins through the native relinker's runtime-module handling and package the converted providers alongside their originals. Also match native discovery insce_module/,sce_modules/, andprx/by preserving ELF assets in deeper directories as data. Previously a nested standalone ELF could stop an otherwise valid conversion.Tested
On Ubuntu 26.04, built the release WebAssembly relinker with Emscripten 6.0.12 and ran
python3 tools/test_web.py --build <wasm-build>. The 48 helper tests and the ZIP/folder integration fixtures passed for Linux and Windows output. The parent rejected the Unity fixture, and a nested standalone ELF failed conversion withInvalid string or symbol table. The same inputs converted successfully with this change and the nested asset kept its original bytes.Compared the converted modules in both Unity directories against native CLI
--module-diroutput on both targets. All four matched byte for byte. On a separate homebrew executable that imports a plugin, both the executable and its provider also matched. Checked the Linux loader path and the Windows initialization export. Testing covered generated homebrew fixtures and package contents.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-23T03:31:23Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
584a39fd9a0b8b002691b6929dddb062e154bc68against the prepared diff and source at that head. I ran no commands or tests.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the reported checks or verify behavior on a physical console. No changed files were excluded:
core/relinker/wasm/Bindings.cpp,demo/web/archive.mjs,demo/web/tests/archive-root.test.mjs,demo/web/tests/archive.test.mjs, anddocs/user/USAGE.mdwere read. Excluded files: none.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.