launcher: configure and preview DualSense lightbar color #912
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!912
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/912/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?
@Pyxellator on GitHub · 2026-09-29 19:11 UTC · original
feature/menu-music-controller-color→main· +255 −8 · 13 files · 1 commits · merged 2026-09-29 20:46 UTCAdds a DualSense lightbar color picker to launcher settings with immediate preview and a Default action. Saved colors are passed to the emulator through
--controller-color #RRGGBBand override game lightbar requests.The launcher handles controller hotplug events, restores the saved preview when a settings dialog closes, and releases its preview handles when starting a game.
Validation:
@coderabbitai[bot] on GitHub · 2026-09-29 19:19 UTC · original · edited 2026-09-29 20:53 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
📝 Walkthrough
Walkthrough
The launcher adds per-configuration menu music and controller lightbar color settings. It adds menu audio decoding and looping, controller color preview, and emulator color overrides. The launcher updates these services based on the selected configuration and emulator state. A new music-player test target checks playback, looping, and stopping.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Feature
Merge Risk: 🔵 Low · up to
bd9b5Menu music can remain silent for a selected game after a failed start, and the test would not catch a broken loop. These are bounded issues to address or explicitly accept before merging.
Security Architecture Review
Security architecture risk: 🟡 Moderate · up to
bd9b5Selected game files now reach a media decoder inside the launcher. File and playback limits provide some protection, but decoding work is not visibly isolated or time-bounded. Controller color preview can also resume while a game is running. No exploit was established.
Retained concerns
Security review details
Security Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 8.16% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 49 functions across 15 files. (2 skipped: 2 unsupported.)
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-09-29 19:19 UTC · original
On
src/launcher/src/gameMusicPlayer.cppline 275 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
After a failed start,
Playnever retries the same game.Playsetsm_sourcebefore decoding begins.m_sourcestays set if any of these steps fails:SDL_InitSubSystem(SDL_INIT_AUDIO)fails,SDL_OpenAudioDeviceStreamfails.The early return at Line 239 then skips every later
Playcall for that game.UpdateMusiccallsPlayagain on eachSelectand after the emulator exits. Those calls do nothing, so music stays silent until the user picks a different game. For example, a busy audio device at the first attempt keeps music off for that game for the rest of the session.Fix: clear
m_sourceon each failure path. Another option is to checkm_streamin the early-return condition.Proposed fix
A simpler fix is to reset the source in each failure branch of the lambda:
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-09-29 19:19 UTC · original · reviewed
Actionable comments posted: 1
🧹 Nitpick comments (1)
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
bd7d1be3-d2d4-4a96-a8d6-f6242c6c063f📥 Commits
Reviewing files that changed from the base of the PR and between
2650478d92and bd9b5aacf9ba5d1849f1382b9f163932a47d3163.📒 Files selected for processing (17)
src/common/emulatorConfig.cppsrc/common/emulatorConfig.hsrc/launcher/CMakeLists.txtsrc/launcher/forms/configuration_edit_dialog.uisrc/launcher/include/configuration.hsrc/launcher/include/configurationEditDialog.hsrc/launcher/include/configurationListWidget.hsrc/launcher/include/controllerLightbar.hsrc/launcher/include/gameMusicPlayer.hsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/configurationListWidget.cppsrc/launcher/src/controllerLightbar.cppsrc/launcher/src/gameMusicPlayer.cppsrc/launcher/src/mainDialog.cppsrc/launcher/tests/gameMusicPlayerTests.cppsrc/libs/controller.cppsrc/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.