launcher: add local game patches #111
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!111
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/111/head"
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?
@Nmzik on GitHub · 2026-07-27 14:17 UTC · original
KytyPS5:codex/shadps4-texture-architecture→main· +497 −14 · 14 files · 1 commits · merged 2026-07-27 14:19 UTCNo description provided.
@Nmzik on GitHub · 2026-07-27 14:24 UTC · original · reviewed
Blocking findings remain in the patch application path. The current implementation can select an unintended guest address when a signature is ambiguous and can silently compose conflicting enabled patches. Please make target resolution unambiguous, reject overlapping ranges before mutation, and add focused tests for zero/one/multiple matches and conflicting writes.
@ -0,0 +211,4 @@::printf("Game patch: found %zu entries for '%s'\n", match_count,write->patch_name.c_str());if (match == 0) {@Nmzik on GitHub · 2026-07-27 14:24 UTC · original
Blocking: reject ambiguous signatures instead of patching the first match.
match_countalready records every occurrence, but this condition only rejects zero matches. A short or non-unique byte sequence can therefore select whichever occurrence happens to be scanned first and modify unrelated guest code. Require exactly one match, or include an explicit disambiguating offset/range in the plan.@ -0,0 +228,4 @@}bool ApplyWrites(Plan* plan, std::string* error) {for (auto& write: plan->writes) {@Nmzik on GitHub · 2026-07-27 14:24 UTC · original
Blocking: validate the resolved write set for overlapping ranges before applying it. Every enabled write is resolved against the original image, then these writes are committed sequentially without rechecking
expected; two patches targeting the same or overlapping bytes both pass preparation and the later write silently overwrites the earlier one. Reject conflicts (or define and validate explicit composition semantics) before changing memory.