Repository navigation
Idea: opt-in offline patch recommendations from an external catalog #8893
WhiteAssassins
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Proposal
Would a small, opt-in offline patch advisor be acceptable as a generic follow-up to #6314? The relinker can apply and verify a per-title TOML patch, but a user currently needs to find the right file and decide whether it matches their build. This proposal is about discovering and recommending a candidate; the user would still run
--patchesexplicitly.The title-specific catalog would be maintained outside the AnyPS5 repository. PR #8900 contains generic lookup and validation code plus tests using synthetic files, in line with CONTRIBUTING.md. It does not fetch a catalog or apply a patch automatically.
Scope of PR #8900
sce_sys/param.json. The explicit path works when the unwrapped ELF files are kept separately fromapp0/.titleIdandcontentVersionfromparam.json. Treat the identifier as metadata rather than hard-coding a game or assuming a prefix. This does not imply support for another console's executable format.--verify-patchesor shared validation) before calling a candidate applicable. Report the source of the catalog entry, target hashes, patch file path and any mismatch. A mismatch or missing metadata yields no recommendation, not an automatic fallback.--patchesto a conversion.The PR adds
tools/suggest_patches.py --catalog DIR --param-json FILE --input FILE --relinker FILE [--module-dir DIR].... A local catalog entry holdstitleId,contentVersion, target-relative paths and SHA-256 hashes, and a relative path to a patch TOML file. The CLI and catalog format are open to review.Why this came up
On Linux, DREDGE
PPSA09076,01.011.000, has an unwrappedMedia/Modules/Il2CppUserAssemblies.prxwhose SHA-256 isd557bb4ea9acdd765a3652b0038b86b8f5cd8d33d91bbc79cd21580cf6ea9cab. In the available title files, that module declares aContentSearchPlugin.prxdependency, but the plugin is absent. A local, byte-checked patch that omits thatDT_NEEDEDentry passed--verify-patches; conversion produced the executable and 14 modules, andldd -rfound no missing dependency. The title owner reports that the game fails to launch without the patch and launches and plays normally with it. That gameplay result is user-reported, not covered by the advisor's automated tests. This does not establish that the console generally ignores absent declared dependencies. I would keep this title's patch and evidence in a community catalog / Game bring-up discussion, not in AnyPS5's source tree.This builds on the patch feature discussed in #6206 and #6207. SHA-256 matching is a discovery gate, separate from the patch file's existing
expectedbyte checks. It can reject an otherwise applicable patch if different dump tools produce different bytes for the same title version; we have not established that their output is identical.RPCS3's Patch Manager and shadPS4's community patch repository, which can be browsed from its GUI, are useful precedents for community-maintained patches and user-facing discovery. Their patch formats and application points differ from AnyPS5's relinker, so this proposal needs its own matching, verification, and review rules.
Possible community catalog after the advisor
If maintainers want an official catalog, I propose a separate repository under project governance. It could accept patch definitions and metadata through reviewed pull requests without storing game executables or other game files. Each entry should identify the affected target hashes and content version, cite the contributor and source, and record evidence at distinct levels: verification, conversion, launch, and gameplay. Compatibility notes and a way to withdraw or supersede entries would help users judge stale patches. The advisor would continue to require exact target hashes and relinker verification, and applying a patch would remain an explicit user action. SHA-256 does not authenticate a catalog or establish patch safety; review and provenance would be required before treating it as trusted. Signatures could be considered later if maintainers define a signing and key-management policy. A later web converter or AnyPS5 GUI could offer a selector of verified, compatible patches for the user to choose during conversion. Applying patches to already relinked outputs could be explored separately; the current relinker can verify some converted Linux outputs with
--verify-output, but this PR does not add a way to apply patches after conversion.Questions for maintainers
AI-assisted: yes. I reviewed the proposal and local test results.
All reactions