Add add-on (DLC) support #1519
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!1519
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1519/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-15 04:36 UTC · original
Pipe530:pipe530-dlc-addcont-support→main· +633 −17 · 18 files · 1 commits · merged 2026-10-16 00:09 UTCAdds support for extracted PS5 add-on packages through the global Add-ons folder setting and
--addcont-dir. Shared discovery validates content IDs, filters packages by title before deduplication, and skips base-game and malformed metadata.The launcher’s Additional Content dialog lists names and icons with fallbacks. Detected packages are reported as owned and can be mounted at
/addcontN/. Existing GTA V entitlements remain first in the list, followed by detected add-ons.Validation: Linux launcher/emulator build and five focused CTest checks passed, including regressions for combined entitlement lists, title filtering, mounted file access, duplicate mounts, and the 64-mount limit. In-game validation remains to be done for this revision.
@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original · edited 2026-10-16 00:10 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
2fdfc926-8eb2-40b8-b2c2-f80cd3278992📥 Commits
Reviewing files that changed from the base of the PR and between 39a8606f585316a42a2af83f347516233b7e5646 and 065cb72216b2d8c3d3dd0102e4629104c3af0179.
📒 Files selected for processing: 2
src/launcher/src/additionalContentDialog.cppsrc/loader/addContent.cpp🚧 Files skipped from review as they are similar to previous changes: 2
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
The launcher now stores an add-ons directory, passes it to the emulator, and provides a dialog to browse matching content packages. The emulator loads package entries filtered by title ID. The loader exposes entries through entitlement lookup and enumeration. App-content APIs use those entries to mount and unmount content.
Priority: ➖ Normal
Change: Feature
Merge Risk: 🔵 Low · up to
065cbAdd-on handling has a few minor correctness gaps. Add-ons for other titles can be matched or registered, and clearing global settings can leave the add-ons folder set. These do not block normal use, but they are worth fixing before or soon after 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-15 04:52 UTC · original
On
src/emulator.cppline 223 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reuse the title-ID lookup and fall back to
CONTENT_IDfor PS5 titles.PS5 titles often have no
TITLE_ID;ResolveTitleIdinlibAppContent.cpphandles that case with aCONTENT_IDfallback. This code ignores the getter's return value and passes an empty string.AddContentLoadthen skips the title filter, so add-ons for every title in the folder are registered and reported as owned. Resolve the title ID fromCONTENT_IDhere as well, and reusetitle_idfrom line 204.@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original · edited 2026-10-15 11:38 UTC
On
src/launcher/src/additionalContentDialog.cppline 62 (outdated):🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 9220
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5506
Filter by title ID before deduplicating labels.
Two titles can have valid content IDs with the same final label.
AddEntry()andAddOrUpdateEntry()keep one entry per label before filtering by title ID. If the other title is scanned first, the selected title’s add-on is omitted from both the dialog and runtime registration.Pass the requested title ID into the parsing or insertion path and apply the existing title predicate before inserting into either label map. Keep label deduplication for entries belonging to the selected title.
✅ Addressed in commit 065cb72
@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original
On
src/launcher/src/additionalContentDialog.cppline 205 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 4015
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 37115
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 11839
Match the content ID’s title segment in the dialog.
When a foreign valid content ID contains the selected title ID in its final label,
AdditionalContentDialog::Scan()adds it to the list. Users then see a foreign DLC for the selected game. Loader-only matching or deduplication fixes do not change this dialog predicate.Compare the nine-character segment between the first
-and_withm_title_id.Suggested fix
📝 Committable suggestion
@ -350,0 +352,4 @@auto* addons_layout = new QHBoxLayout;addons_layout->setContentsMargins(0, 0, 0, 0);addons_layout->setSpacing(4);m_addons_dir_edit = new QLineEdit(m_game_dirs_group);@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Clear the add-ons folder when resetting global settings.
The new editor is not reset by
clear(). If a user clicks Clear and saves,GetAddonsDirectory()returns the old folder, so the reset leaves add-ons enabled. Clearm_addons_dir_editin the global-settings branch ofclear().@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original
On
src/loader/addContent.cppline 157 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Compare the title segment exactly instead of using a substring search.
content_id.find(title_id)matches the title ID at any position in the content ID. A 16-character label can contain another title's ID, so content for other titles can be registered. The content ID format is fixed, so the title ID is always at characters 7–15. Compare that segment exactly.Proposed fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-10-15 04:52 UTC · original · reviewed
Actionable comments posted: 5
ℹ️ Review info
⚙️ Run configuration
d0854798-4539-479d-8e54-b8a04b5395fb📥 Commits
Reviewing files that changed from the base of the PR and between
9e41d8320aand 39a8606f585316a42a2af83f347516233b7e5646.📒 Files selected for processing: 15
src/emulator.cppsrc/emulator.hsrc/launcher/include/additionalContentDialog.hsrc/launcher/include/configuration.hsrc/launcher/include/configurationEditDialog.hsrc/launcher/include/configurationListWidget.hsrc/launcher/src/additionalContentDialog.cppsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/configurationListWidget.cppsrc/launcher/src/mainDialog.cppsrc/libs/libAppContent.cppsrc/libs/libNet.cppsrc/loader/addContent.cppsrc/loader/addContent.hsrc/main.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.