Support mountable-content DLC (addcont with real content) #1581
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!1581
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1581/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?
@Pipe530 on GitHub · 2026-10-17 02:23 UTC · original
Pipe530:pipe530-dlc-mounting-support→main· +64 −12 · 5 files · 1 commits · merged 2026-10-17 02:44 UTCBasic DLC (entitlement/key-unlock only) already worked. This PR adds support for the other type of DLC: add-on content that contains real files and must be mounted by the game via
sceAppContentAddcontMount.Tested with Street Fighter 6 (PPSA02633): both DLC paks (
re_dlc_000.pak, 7 GB and 32 GB) mount, resolve and are read by the game; the DLC-unlocked Fighting Ground mode becomes selectable.Changes:
fileSystem.cpp: collapse duplicate slashes in mount-point path resolution.libAppContent.cpp: returns mount points without a trailing slash and succeeds with the same mount point for already-mounted content, matching shadPS4-style behavior; creates/download0/pdlc; invalidates cached APR failed resolves on mount/unmount.libAmpr.cpp:InvalidateFailedResolves()plus diagnostic logging for/addcont*resolves and pak reads.libPlayGo.cpp:PlayGoGetChunkIdreturns the total chunk count when the output list is null and rejects a non-null list with zero capacity.verified manually via runtime logs. SF6 later crashes in the Vulkan descriptor heap, which is unrelated to this change since main cant render that game well.
@coderabbitai[bot] on GitHub · 2026-10-17 02:26 UTC · original · edited 2026-10-17 02:43 UTC
📝 Walkthrough
MountPoints::ResolvePathnow normalizes repeated slashes before mount matching and relative-path extraction. Addcont mount operations handle repeated mounts, normalize unmount paths, invalidate failed path resolutions, and create a resolved pdlc directory when its path is nonempty. The changes also add logging for selected addcont resolutions and package reads.PlayGoGetChunkIdnow supports zero-entry queries by returning the loaded chunk count.Suggested reviewers:
nmzik,frangametvPriority: ➖ Normal
Change: Feature
Merge Risk: 🟡 Moderate · up to
106ebDLC content now mounts and loads. However, unmounting or remounting add-on content can leave the game reading files from the previous mount, because cached successful lookups are not cleared. This should be addressed or explicitly accepted before merge.
Pre-merge checks:
4 ·
1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-17 02:27 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
982b02ec-c958-461f-9f0e-f7d29960ffc7📥 Commits
Reviewing files that changed from the base of the PR and between
9202bddad2and 106ebd0b4eeefea562696a5e498893f1ab5826a1.📒 Files selected for processing: 4
src/kernel/fileSystem.cppsrc/libs/libAmpr.cppsrc/libs/libAppContent.cppsrc/libs/libPlayGo.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@ -179,0 +183,4 @@void InvalidateFailedResolves() {std::scoped_lock lock(g_mutex);for (auto it = g_resolved_paths.begin(); it != g_resolved_paths.end();) {it = it->second.result != OK ? g_resolved_paths.erase(it) : std::next(it);@coderabbitai[bot] on GitHub · 2026-10-17 02:27 UTC · original
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Invalidate successful resolutions when an addcont mount changes.
If APR resolves
/addcont0/filebefore unmount, this function retains its successful cache entry. A later resolve returns the old file ID and host path, even after/addcont0is unmounted or assigned to another entitlement. Remove affected path-cache entries on mount changes. Keep existing file IDs valid separately if submitted reads still need them.