Add custom parameters to desktop Play #3209
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3209:github-pr/3209" git switch "github-pr/3209"
Open
leonida/mandy
ubiquitarianism wants to merge 4 commits from
github-pr/3209 into main
pull from: github-pr/3209
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3209
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/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?
This pull request has changes conflicting with the target branch.
Merge manually to resolve the conflicts.
Reviewers 0 approvals
Details
This pull request has changes conflicting with the target branch.
Merge manually to resolve the conflicts.
d3d12/scripts/play-nvidia.ps1docs/launcher.mdtests/test_leonida_launcher.pytools/leonida_launcher.pyView 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.Claimed 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.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).
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.
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).
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.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.
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).