launcher: add opt-in portable settings #1260
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!1260
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1260/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?
@popeee99 on GitHub · 2026-10-08 21:25 UTC · original
popeee99:fix/portable-launcher-settings→main· +171 −25 · 5 files · 2 commits · closed without mergingAdds the launcher portion of the portable mode requested in #151 (#151).
With an empty
portable.txtbeside the launcher, settings are read from and written to the adjacentKyty.ini, including first launch when that file does not yet exist. Launcher startup selects the executable directory as its working directory so the existing relative compatibility database also stays there. Without the marker, the existing current-directory and platform-scoped settings precedence is preserved.The underlying problem is that both settings paths previously chose only between a current-directory INI and platform-scoped settings; neither recognized the requested marker. The compatibility database also used the caller's working directory. A shared settings factory keeps read and write selection consistent.
This intentionally does not close #151: emulator data paths and explicitly configured output paths are outside this launcher change. Existing settings are not migrated. The launcher directory must be writable. I checked the open portable-related PRs and #740 (Linux emulator data paths); #740 does not modify these launcher files.
Validation:
Added a regression executable using the real
ConfigurationListWidgetand Qt implementation, in an isolated copied executable directory containing spaces. It checks marker location/type, first-run creation, persistence, working-directory changes, legacy precedence, and preservation of existing nonportable settings. It runs offline with--local.Against upstream
2f4b8a335d5e27a5153bdea670bd877a061e37b1, the new test fails because the selected file isworking/Kyty.iniinstead of the executable-adjacentKyty.ini; the three selected existing tests pass.With the fix,
launcher_settings,controller_settings,bit_array, andlru_cachepass (4/4).The launcher regression passes with Clang 21.1.8 AddressSanitizer and UndefinedBehaviorSanitizer, with leak detection enabled. Launcher sources in the test were instrumented; external Qt/common libraries were not rebuilt with sanitizer instrumentation.
git diff --checkpasses.Full local
launcherbuild, includingkyty_emulator, succeeds on WSL Ubuntu with Clang 21.1.8 and Qt 6.10.2.All four existing emulator CLI integration tests pass. The four focused regressions pass again after the final CMake change; the launcher test remains sanitizer-instrumented.
An isolated offscreen smoke test of the real launcher confirms normal mode retains the caller's working directory and portable mode switches to the executable directory and creates adjacent
Kyty.ini.The new regression is included in the documented
kyty_testsaggregate target. Existing CI selects specific test targets, so it does not run this new Qt regression automatically.Windows, macOS, and Linux CI passed the full build, selected existing regression tests, installation, and artifact upload on the production-fix commit
be85a14: https://github.com/popeee99/KytyPS5/actions/runs/37844397510. The subsequent commit only adds the aggregate test dependency, verified by local CMake generation and the final test run.No proprietary game files were used. Game execution and GPU rendering were not validated; the available WSL software Vulkan device lacks required features. The full registered CTest suite was not run locally. This is launcher storage behavior, not a game compatibility or performance improvement.
CodeRabbit reviewed the final commit
fa2dd2dand reported no actionable code findings. Its linked-issue warning correctly notes the intentionally partial scope above; its docstring-coverage warning is not addressed with redundant comments. Upstream Actions requires maintainer approval; the fork CI results above are independently available.AI assistance: Codex investigated, implemented, reviewed, and ran the validation for this change at the contributor's request. No independent human code review is claimed.
@coderabbitai[bot] on GitHub · 2026-10-08 21:28 UTC · original · edited 2026-10-08 21:36 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
c8508b65-d0da-459b-bb8e-14e7dce316ed📥 Commits
Reviewing files that changed from the base of the PR and between
2f4b8a335dandfa2dd2df2f.📒 Files selected for processing (5)
README.mdsrc/launcher/CMakeLists.txtsrc/launcher/src/configurationListWidget.cppsrc/launcher/src/main.cpptests/LauncherSettingsTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough
When
portable.txtexists beside the launcher, startup attempts to use the application directory as its working directory. Settings reads and writes use a shared selection: portableKyty.ini, an existing current-directoryKyty.ini, or platform-scope settings. The change adds tests for these choices and documents portable settings behavior.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Feature
Merge Risk: ⚪ Minimal · up to
fa2ddThe portable settings change is mergeable after normal checks; no outstanding behavior issue is established.
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
#151] requests a fully portable emulator and launcher that keep all files and configurations in the application folder. This PR implements the launcher subset: an adjacentportable.txtselect…portable.txtis present, and add automated coverage for those paths.✅ Passed checks (3 passed)
LauncherSettingsTests.cppall support the launcher portable-settings behavior described for [#151]. The working-directory change also sup…Full details: Linked Issues check
Explanation
Issue [
#151] requests a fully portable emulator and launcher that keep all files and configurations in the application folder. This PR implements the launcher subset: an adjacentportable.txtselects adjacentKyty.ini, launcher startup changes to the executable directory, and the regression test covers selection and persistence. The PR documentation states that emulator data paths and explicitly configured output paths retain their prior behavior. Therefore, the full coding requirement in [#151] remains unmet.Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 3 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.Pull request closed