Add custom parameters to desktop Play #3209
Open
github-bot
wants to merge 4 commits from
github-bot/gh-3209 into main
AGit
pull from: github-bot/gh-3209
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3209
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3209"
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?
@ubiquitarianism on GitHub · 2026-12-02 19:26 UTC · original
ProjectLeonida:t3/launcher-custom-parameters→main· +350 −31 · 6 files · 4 commits · openClaimed in the coordination issue as LAUNCHER-CUSTOM-PARAMETERS.
Depends on: #3182 for merge-order coordination. The launcher overhaul overlaps these files. If it merges first, integrate this change into its launcher layout.
What and why
Windows users opening
Launcher.batcan save extra switches under Settings → Custom launch parameters, then use them through PLAY. The launcher validates switches and scalar values, rejects duplicate or conflicting choices, and passes each argument literally to the existing PowerShell script. This includes quoted glyph folder paths with spaces, brackets, or trailing backslashes.New, edited, or removed switches take precedence over the corresponding F1 settings. The launcher advances its switch history after the script successfully reconciles those settings, so a dry run or a failed reconciliation leaves the override available for the next start. The existing PowerShell
-Fileentry point and switch semantics still govern the launch.Tested
b41763227, retry and bracket regressions against1e70edc84, F1 reconciliation regressions againste29dc5a2c, and native glyph argument handling with a trailing backslash against1843e6125.AI-assisted implementation and verification used OpenAI Codex GPT-6.2 Sol. Separate read-only reviewers used GPT-6.2 Sol.
Checklist
mainatb41763227.python -I scripts/check_no_game_data.py. The patch and this PR contain no game data, keys, decryption or protection workarounds, or game logs.@merzleckeier on GitHub · 2026-12-02 20:14 UTC · original · reviewed
-HardwareRTcan lose an explicit add or removal to the older F1 value, even though the new launcher commits its launch history. Ona3e0db68,desktop_play_commandcorrectly produces-Chosen HardwareRTboth ways and the wrapper forwards it as-Typed HardwareRT. The existing$switchSettingstable (play-nvidia.ps1:574) has noHardwareRTentry forLEONIDA_HW_RT, which is a saved F1 option (host/menu.rs:82). With F1 OFF saved asLEONIDA_HW_RT=, adding-HardwareRTleaves the effective setting unset. With F1 ON saved asLEONIDA_HW_RT=1, removing the custom switch leaves it on. The menu file keeps the old value andF1 settings applied.prints in both cases. I verified this with the desktop command builder, the actual wrapper, and the unchanged setting and menu blocks under PowerShell 7 on Linux with synthetic files. AddingHardwareRT = 'LEONIDA_HW_RT'to the table in that fixture made both directions work while preserving the no-saved-value control. Please cover these in the new custom-parameter precedence tests. No runtime or GPU workload was started. AI-assisted.@lixonik on GitHub · 2026-12-02 21:03 UTC · original
Verified PR #3209 (
a3e0db68e) merged cleanly ontomain(8a9235d02) on native Windows 10 x64:python -I scripts/check_no_game_data.pyPASS.a3e0db68eonto8a9235d02):python -I tests/test_leonida_launcher.py-- 34 tests, OK (0.721 s).python -I tests/test_play_nvidia_menu_choice.py-- 17 tests, OK (14.49 s).mainlauncher/scripts + PR tests):tests/test_leonida_launcher.py-- FAILED (failures=1, errors=27).tests/test_play_nvidia_menu_choice.py-- FAILED (failures=2).Verdict: PASS (native Windows Python/PowerShell tests; no game launch).
AI-assisted: yes (Antigravity -- Gemini 4 Neon).
@fiestorra on GitHub · 2026-12-02 21:04 UTC · original
VERIFY-3209 — Windows nativo: los tests del lanzador y del menú pasan, y el control muerde
(this PR)b41763227= currentmainmain—merge-treeclean,git merge --no-ffcleanRan
Negative control (the three source files —
tools/leonida_launcher.py,d3d12/scripts/play-nvidia.ps1,scripts/play-d3d12.ps1— reverted tomain, the PR's tests kept):The parser is the part I read line by line, and it is careful:
custom_switch_argsrejects anything with CR/LF/NUL, splits withshlexwithescape = ""(so a Windows path keeps its backslashes — the usual place this breaks), then refuses any token that is not-Name, refuses a value that is missing or starts with-(so-Switch -Othercannot silently swallow the next switch), checks the value against a per-switch catalogue/pattern, rejects duplicates already set in Settings, and enforces the exclusive pairs. Nothing free-form reaches the script; only whitelisted switches and their validated values do.The catalogue test is the one worth keeping:
test_custom_switch_catalog_matches_the_scripts_scalar_parameterscross-checks the launcher's list against what the PowerShell script actually declares, so the two cannot drift apart without a test failing.What I could not test
CopyFromScreen: The handle is invalid), so the window, the field and its validation messages are exercised through the Python functions, not through the GUI.Verdict: red then green on native Windows for the logic.
Written with an AI assistant.
@MoonEyes on GitHub · 2026-12-02 22:00 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@fiestorra on GitHub · 2026-12-03 02:12 UTC · original
The comparison I said was the first step, run: the
-LiteralPathhalf is not inmain, the menu-read guard is not eitherI said
#3209's first step was to compare its settings-file handling against#3182's launcher, not to rebase. Done:main'splay-nvidia.ps1has three-LiteralPathuses, and none is in the settings reader:So these two lines of this branch are new, and they are the change:
And the guard around the menu read is not in
maineither — there is nomenuSynced, and no"The F1 menu file could not be read"— so this is also new:So it is not redundant, and the rebase is a rebase —
play-nvidia.ps1is the file#3182touched, but the region this branch edits is one#3182did not rewrite in a way that collides with-LiteralPathor with atryaround the read.What that means for whoever takes it: one file, two hunks, and the test behind them is 173 added lines in
tests/test_leonida_launcher.py— which is the part that will conflict again ifmain's launcher moves, because that file is the one four pull requests share.And the reason the change matters, said plainly: a settings path with
[and]in it is a wildcard toTest-PathandGet-Content, and a user whose folder is named[backup]gets a menu file that silently does not read —-LiteralPathis the difference between "the menu forgot my settings" and a correct read.mainuses it for the writes (L651) and not for the reads, which is a real asymmetry and the reason this pull request exists.@fiestorra on GitHub · 2026-12-03 02:13 UTC · original
Correction to what I said one comment ago: the script and the tests merge by themselves; the hard part is six blocks in the launcher
I wrote "one file, two hunks". That was about
play-nvidia.ps1— and I had measured the file I compared, not the files that conflict. Measured properly, with the merge in a throwaway worktree:So the
-LiteralPathand themenuSyncedguard — the two changes I checked againstmainand found new — apply without a conflict. What does not is the rest of this branch'sleonida_launcher.pywork (+144 lines) against#3182's rewrite of the same file, in six places, plus one block indocs/launcher.md.Six blocks in a file that was rewritten is not a rebase I should do at this hour, and I am not going to:
#3182replaced functions this branch edits, and choosing which side of six such blocks survives is a decision about this pull request's behaviour, not a mechanical resolution.What I would ask of whoever owns the branch: the two changes that survive cleanly are the ones worth keeping first —
-LiteralPathon the read and thetryaroundRead-SettingsFile— and the other four fifths of its launcher work may be re-expression of things#3182now does differently. That is a comparison, not a merge, and it is exactly what I did for the script half in the comment above.The correction matters more than the original sentence: "two hunks" would have sent someone to a rebase that takes an hour; the real shape is two clean files, one clean test file, and six blocks against a rewrite.
@MoonEyes on GitHub · 2026-12-03 07:01 UTC · original
This pull request has a merge conflict with current
main(d9b618f10), so it can't be run in game or merged as it is. Could you merge the latestmaininto it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.AI-assisted (Claude Code).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.