Variable values showed lists of the title's program hashes (LEONIDA_PAIRED_FOR and the like), program names and
URLs. A value is now shown as it is only when it is a number, true/false or a short word; a list shows its count
(<44 entries>), anything else <set>. Windows, the card, the profile, the upscaler and frame generation go word by
word through an allowlist (short words, numbers, model numbers such as A770, the (R)/(TM) marks); the resolution
must look like 1080 or 2560x1080. Tests cover the reviewer's probes and that real card names stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blocklist missed what the runtime really logs: pipeline/host.rs logs the title's program names as
names=["PS_..."], capture.rs logs path=D:\..., and paths outside the home folder or quoted file names passed.
Now every word of an error line is kept only if it is a plain word, a number, a timestamp, the logging module or a
Windows status code; a field keeps its value only if it is a number, true/false or a status code; a word made of
6+ hex letters (deadbeef) is dropped; removed words in a row become one <removed>. The exception text of a failed
read is scrubbed too. The scrub tests now assert that nothing leaks, with the reviewer's real runtime lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They say what went wrong (the crash or device-removed code players are asked for) and hold nothing of the game or
the user. Addresses (longer, or not starting with C0 or 8) are still removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Puts a short plain-text block (25 lines at most) on the clipboard: the
Leonida commit, Windows version, the card the newest d3d12 play log names,
the play settings in effect and up to 10 scrubbed error lines of that log.
The block builder and the scrub (home folder, hex runs, 0x values, hex-like
names after shader stage words, program/shader/pipeline/pso/hash values,
200-character cut) are pure functions in tools/bug_report_info.py. The
driver version and, mostly, the video memory are not in the runtime's log
and read "not in the log". No game data, no paths.
Claim: LAUNCHER-COPY-REPORT (#3312)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The body is read as stored (JSON, not --jq, which added a newline that update_body kept: one more per day).
- The issue is the newest open "Coordinating who works on what" opened by an owner, member or collaborator, so a
look-alike issue cannot take the bot over (search API author_association; #3312 qualifies).
- The body is read again before the edit; if it changed during the run, the edit is skipped with a warning.
- The "Updated" stamp is the day, not the minute, so an unchanged table is not rewritten within a day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claim ORG-CLAIMS-TABLE (#3312).
tools/coordination_claims.py reads the comments of the coordination threads and the open pull requests and
lists every ID that was claimed and has no later done:/released: line: claimed date, ID, claimant, age in days
and up to three open pull requests naming the ID as a whole token (D3D12-A does not match D3D12-AB or
D3D12-A-2), oldest first, with counts. --update-body replaces only the text between the claims-table markers
of an issue body, appends the block when they are absent, and drops the newest rows with a "N more" line to
stay under GitHub's 65,536-character limit. No network inside the module.
.github/workflows/coordination-claims.yml runs it once a day (and on demand): it finds the newest open issue
titled "Coordinating who works on what", reads its comments and those of the thread it continues, lists the
open pull requests and edits the body with gh issue edit --body-file.
Tested with tests/test_coordination_claims.py (synthetic comments only).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claim ORG-SWITCHES-NO-CONFLICT (#3312).
Every pull request that adds a LEONIDA_* name regenerates d3d12/docs/switches.md,
and the page opened with "N names; M have a sentence of a comment", which each
addition changes, so two such pull requests conflicted on that line however far
apart their rows were. The "Only in tests" and "Only in comments" sections were
one comma-joined line each, the same trap.
The generator now writes no total (the sentence is replaced by a fixed one) and
lists the test-only and comment-only names one per line. An addition touches
only its own row. Two additions conflict only when they land in the same gap
between two existing rows. --check reads the new list form; a test asserts that
an added name adds exactly one line and that no "N names" line exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
all-globs-to-any-file needs one file to match every glob, so three crate globs side by side could never all match;
top-level match objects are AND-ed, so the play-script rule sits with the crate rule under one `any`. *_tests.rs
files are excluded too. Checked with Node's path.matchesGlob on six sample paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add .github/labeler.yml and a pull_request_target workflow running
actions/labeler v7.0.0 (pinned by SHA, sync-labels off, no checkout of pull
request code). Labels: area (d3d12, shader translator, launcher, runtime
(legacy), tools, viewer, docs, ci) and `needs in-game run` for changes under
the gpu/shader/hle src dirs and d3d12/scripts/play*.ps1, excluding tests.rs
and tests/ (docs/game_gate.md).
Claim ORG-AREA-LABELS (#3312).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under pipefail a grep that matched early could make printf fail with SIGPIPE on a large file list, which the
negated test read as no D3D12 change and skipped the build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- AGENTS.md: agents never merge their own pull request, as CONTRIBUTING.md says; the cargo test command no longer
skips depth_bounds_pipeline_loads_and_filters_draws, which d3d12.yml runs and passes.
- The switches page said no CI job keeps it current; tests/test_d3d12_switches.py runs --check on it in the required
check job. Fixed in the generator and the page.
- docs/design.md carried "PAL stage descriptors" twice, byte for byte; the second copy is gone.
- port_status.md and port_plan.md describe the Vulkan base and victory/, which no longer exists: a banner says so and
points to d3d12/, and the index lists them under a historical heading instead of "Start here".
Claim: DOCS-STALE-AGENT-RULES (#3312)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge queue never ran d3d12.yml (no merge_group trigger), so a group could merge a d3d12 break: main failed the
D3D12 job on five pushes in a row on 2026-12-02. Pull requests and queue groups now always run the workflow, so its
check reports on every change and can be made required; a small `scope` job skips the Windows build when neither
d3d12/, mods/ nor the workflow changed. Push and manual runs build as before.
Claim: CI-D3D12-MERGE-QUEUE (#3312)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of 69925a7c0:
- [P1] cache_dir_problem protected <data_root>/data only; on Linux
play-linux.sh puts the saves in ${XDG_DATA_HOME:-~/.local/share}/leonida/data
(or an inherited LEONIDA_DATA_DIR), and an Advanced LEONIDA_DATA_DIR moves
them on both systems. runtime_dir now gives the runtime's own folder for
LEONIDA_CACHE_DIR and LEONIDA_DATA_DIR (Advanced first, Linux's inherited
environment next, then each system's default; relative values from where
the runtime starts: d3d12 on Windows, the checkout on Linux), and the guard
protects those effective saves as well as <data_root>/data.
- [P2] An inherited relative LEONIDA_CACHE_DIR was not normalised, and a typed
~ was expanded while the runtime takes it as it is: both resolve the same
way now (no ~ expansion, as leonida-core's config), so PLAY, the
confirmation and the deletion name one folder.
Tests: RuntimeDirTests (inherited relative from the checkout; a typed ~ kept
on both systems; Windows ignores an inherited value; the Linux default saves
and their parent refused as a cache, an Advanced LEONIDA_DATA_DIR and a folder
in it refused on both systems, the Linux default cache allowed); the Linux
cache test made path-neutral. 143 OK. With the old saves guard the new test
fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's P1 on 29085dbf2: an Advanced LEONIDA_CACHE_DIR that is
relative was resolved from the GUI's working directory, while the runtime
resolves it from where it starts (d3d12 on Windows, where play-nvidia.ps1
pushes; the checkout on Linux, where play-linux.sh starts), so Tools could
pick another existing folder; and the typed value was the recursive
deletion target as it stood.
- shader_cache_dir makes a typed value absolute from that base (~ expanded),
one path for the confirmation and the deletion.
- cache_dir_problem refuses a drive's root, a folder that holds the home
folder or the data folder, and any folder that holds or sits in the saves
(<data>/data), the game folder or Mandy's own folder. The default cache
(<data>/cache-2, beside the saves) stays allowed. Clear shader cache says
why and deletes nothing; the window warns before any confirmation.
Tests: CacheDirGuardTests (a relative value made absolute per system and,
being inside Mandy's folder, refused; Data, Data/data, the saves, Game, a
folder under Game, the parent of both, Mandy's folder, d3d12, the home
folder and the root all refused with the saves and the game file intact; a
cache elsewhere cleared; the default cache allowed). 141 OK; new texts in
de/es/fr/pt. Counter-test with the guard off (removal stubbed, nothing
deleted): both tests fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of 4b64ba9e4:
- Two Clear shader cache tests expected Windows' cache-2 while calling the
platform default, so they failed on Linux (CI's linux-python-and-viewer).
They pass windows=True now (clear_shader_cache takes `windows`).
- After an NVIDIA PLAY, choosing the AMD card made -Chosen name Adapter, Dlss,
FrameGen, NoDlss and SmoothMotion: -Chosen compared for_card's output with
last_switches, so the card filter looked like the player's edits and the
F1 merge dropped the saved DLSS, frame generation and Smooth Motion. Now
-Chosen compares the player's own switches (switch_args of the saved
settings, -Log for a diagnostic start) and last_switches keeps those too
(launch_snapshot, still taken with the queued command); the card's part
goes as -CardMask only.
- play-nvidia.ps1's LEONIDA_MENU_ARGS (the F1 menu's SAVE AND RESTART)
carries -CardMask, so a masked LEONIDA_FRAME_GEN=2 stays masked on the
restarted start.
- Clear shader cache clears a LEONIDA_CACHE_DIR typed in the Advanced
options, the cache PLAY uses on both systems, instead of the default.
Tests: test_a_new_card_is_no_change_of_the_players (NVIDIA PLAY then AMD:
-Chosen is Adapter only, -CardMask the three); the snapshot test now expects
the player's switches; test_an_advanced_cache_dir_is_the_one_cleared;
test_win_launchers runs the generated restart command (-CardMask in it,
LEONIDA_FRAME_GEN masked, the upscale the stretch). Launcher suite 139 OK on
Windows and 139 OK (2 skipped) under Linux (WSL Ubuntu, Python 3.12), where
the old tests fail on the two cache tests as in CI; test_win_launchers 12 OK.
Counter-tests: the old snapshot/chosen and no Advanced lookup fail 3 of 3;
no -CardMask in the restart arguments fails the restart case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of 14b374883:
- needed_files planned from the card only: an RTX 4070 with FSR 3 chosen
fetched NVIDIA's files and started -FsrFrameGen without AMD's DLLs (the
script then left FSR 3 off). It now takes PLAY's settings too: FSR 3
chosen fetches AMD's DLLs on any card (also when no card was read); an
NVIDIA RTX card fetches DLSS only when DLSS or DLSS frame generation is in
use. A card without DLSS frame generation still gets AMD's whatever is
chosen. The Frame generation note promises the download only when that
same plan has it.
- With downloads first, start_game recorded last_switches from the settings
as they were after them, so a mode saved meanwhile counted as passed and
was left out of the next -Chosen. launch_snapshot takes the normal
launch's switches with the command; start_game records that.
- docs/launcher.md had a BEL and a BS in place of two backslashes of
d3d12\amd-sdk\FidelityFX\bin (a Python string's \a and \b): fixed.
NoControlCharactersTests fails on any control byte but tab, LF and CR in
docs/*.md, the READMEs, the launcher and its translations.
Tests: test_the_chosen_modes_count, test_the_options_recorded_are_those_passed,
NoControlCharactersTests; 133 OK (one skipped). Counter-tests: needed_files
ignoring the modes, start_game recording the live settings, and a BEL
appended to docs/launcher.md each fail their test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: docs/launcher.md keeps the card-mask text with FSR 3's name;
tests/test_leonida_launcher.py keeps both sides' new classes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's reviews at 02:35, 02:47 and 02:58 and DeadlyChirp's 02:46 note:
1. The AMD/Intel card filter named NoDlss, NoFrameGen and SmoothMotion in
-Chosen, so a real PLAY rewrote leonida-settings.txt without the F1
menu's DLSS, DLSS frame generation and Smooth Motion. The launcher now
passes -CardMask (card_mask) instead; play-d3d12.ps1 hands it over and
play-nvidia.ps1 leaves those settings out of this start only, keeping
them in the menu file (and says so); the menu's FSR stays.
2. play-nvidia.ps1's automatic DLSS frame generation looked at every card:
with -Adapter it now judges the cards whose name holds it (all when none
does), so an AMD card chosen beside an RTX 4070 gets none; the card
mask's NoFrameGen also keeps it off.
3. Clear shader cache on Linux looked under the Windows data folder: it now
uses play-linux.sh's LEONIDA_CACHE_DIR or ${XDG_DATA_HOME:-~/.local/share}
/leonida/cache.
4. After the confirmation, clear_cache asks game_running() again, not only
its own process.
5. Linux PLAY passes the extra variables (the Controls page's binds, the
advanced options, Advanced winning) in play-linux.sh's environment
(`env NAME=value sh play-linux.sh ...`); none were passed before.
6. The Controls page keeps entries it cannot read beside its rows
(split_kbm_binds) and writes them back after them: adding a row no longer
drops a saved list with an unknown entry. Its note called t() with a
`text=` value, which crashed the page as soon as it showed one: the
placeholder is {entries} now, in de/es/fr/pt too.
Tests: test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_file
(dry runs, a real start with Start-Process stubbed keeping the menu file,
AMD + RTX 4070 with -Adapter each way and with the mask); card_mask and
-CardMask in play_command; LinuxPlayTests; SplitBindsTests with a guard
that no t() call passes text=. Launcher suite OK (1 skip), win launchers
12 OK, docs links, line endings, check_no_game_data. Counter-tests: the
mask ignored, the adapter filter off, the Linux env/cache, split and
card_mask reverted each fail their tests; the guard regex matches the old
source. Real window (isolated APPDATA): the game started during the
confirmation leaves the cache and says close the game first; adding H to
`both:G=Square;vehicle:N=FutureAction` saves G, H and the unknown entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- d3d12/scripts/get-amd-fidelityfx.ps1 (and Get-AMD-FidelityFX.cmd): AMD's
two signed DLLs FSR 3 frame generation needs, amd_fidelityfx_loader_dx12.dll
(39 184 bytes) and amd_fidelityfx_framegeneration_dx12.dll (29 679 376), from
FidelityFX SDK v2.4.0's Kits/FidelityFX/signedbin on AMD's GitHub (the SDK
whose structure versions fsr.rs speaks: frame generation 4.0.2, its DX12
swap chain 4.0.0) into amd-sdk\FidelityFX\bin, the folder play-nvidia.ps1
reads. Each is kept only with its pinned size and git blob hash and a valid
Authenticode signature of Advanced Micro Devices, both or neither; AMD's
licence (docs/license.md) is saved beside them. amd-sdk/ is git-ignored.
- Tools > Fetch AMD FidelityFX files, with a confirmation naming the size.
- needed_files(card): the DLSS fetch on an NVIDIA RTX card without NVIDIA's
files, the FidelityFX fetch on a card DLSS frame generation does not run on
(not an RTX 40 or 50, play-nvidia.ps1's own test) without AMD's DLLs; none
for an unread card or off Windows, none once the files are there. With the
new setting "Download the files my card needs" (on by default, Picture),
PLAY runs those fetches first in the Output panel, then the game, also when
one failed (the script starts without DLSS or FSR 3 then). Stop during a
fetch ends the start. card_facts now names the judged cards.
- Frame generation's mode reads "FSR 3"; with it chosen and AMD's DLLs
missing, a note says PLAY downloads them first, or where Tools does.
New texts in de/es/fr/pt; docs/launcher.md says it.
Tests: NeededFilesTests (every card kind with nothing there, nothing once
the files are, a half set fetched again, no card or off Windows, the RTX
40/50 test and the folder are the script's, the note, the setting, the
fetcher's pins and signature check and that its two names and fsr.rs's
versions agree; a real run of the fetcher on files that are not AMD's keeps
nothing, and an unpinned tag is refused). 130 OK, test_win_launchers OK.
Counter-tests: needed_files and the note doing nothing fail 3 of 3; the
fetcher without its checks keeps the fake DLLs and fails. Real window (AMD
card stubbed): "FSR 3" fits, the note shows, the Tools button; PLAY with
stubbed commands runs the fetch then the game after a failed fetch, and
only the game with the setting off. No real download was made.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Conflict in tests/test_leonida_launcher.py: #3279's 5-byte and 9-byte
card_memory cases kept, with this branch's "vram" key.
- docs/launcher.md linked gameinput.md#your-own-binds-leonida_kbm_binds, an
anchor that exists only with #3276: the link goes to gameinput.md and names
the section (test_docs_links failed on main without it).
- A "D:\G" literal in a test raised SyntaxWarning: escaped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Controls page between Settings and Mods:
- the main default keys in short (docs/gameinput.md has them all);
- the player's binds as rows: where (Both / On foot / In a vehicle, a
Segmented), the key (its button reads "Press a key…" and takes the next key
or the left or right mouse button, Tk keysyms mapped to kbm.rs's names; Esc
cancels), the pad input (Cross, Circle, Square, Triangle, shoulders,
triggers, stick clicks and pushes, d-pad, View, Menu, or Nothing), and a
cross to remove it; Add bind, and Reset to defaults after a confirmation;
- F1, F3, F4, F8, F9, Alt, Caps Lock and keys kbm.rs cannot read are refused
at capture with a red line (the runtime skips them anyway).
Every change is saved at once as the new setting kbm_binds, in kbm.rs's
syntax (scope:key=action;...), and PLAY passes it as LEONIDA_KBM_BINDS
through -More (extra_variables), so the Play page's options line and Copy my
info show it. A LEONIDA_KBM_BINDS in Settings' advanced options wins, and
the page says so; a saved value the page cannot read is kept whole and
shown as it is. The runtime reads the variable once #3276
(D3D12-KBM-BINDS) is merged; until then it is passed and ignored.
New texts in de/es/fr/pt; docs/launcher.md has a Controls entry.
Tests: ControlsTests (round trip of the string and the rows, any case and
kbm.rs's other names; keysyms of letters, digits, F keys, the keypad with
Num Lock on and off, arrows, Space/Enter/Esc/Tab/Backspace, shifts, ctrls,
mouse buttons, and keys refused; the reserved keys; normalise;
extra_variables, -More and Copy my info; Advanced wins) and a guard that
every scope, key and action the page writes is one kbm.rs reads, with the
names taken from kbm.rs's key_named/action_named/entry/RESERVED text
(LEONIDA_KBM_RS points it at #3276's file; skipped while main's kbm.rs has
no LEONIDA_KBM_BINDS). The i18n test now covers the action labels and the
default keys' lines. 120 tests OK (1 skipped: that guard; run against
#3276's kbm.rs it passes). Counter-tests: no LEONIDA_KBM_BINDS passed, a
wrong keysym, a name kbm.rs does not read and a short reserved list each
fail their test. Real window (isolated APPDATA): the empty page, F1 refused
with the red line while capture goes on, G/R/V captured by key events into
both:G=Square;both:R=none;foot:V=RB, saved to launcher.json, and the Play
page's options line showing LEONIDA_KBM_BINDS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of c179023f9: with vehicle:G=Y;foot:G=RB and no
context, a G tapped inside the 400 ms pause after Caps Lock gave a neutral
pad (the pause holds back keys that change with the table), yet letting it
go switched to the on-foot table: `leaving` was armed from the raw press.
Now `leaving_sent` records that the key counted in a driving pad (its Y
sent); letting it go switches only then, otherwise driving by hand goes on.
Holding it through the pause sends Y and switches on release as before.
Tests: leaving_a_vehicle_by_hand_follows_the_remap gains the swallowed tap
(still driving, leaving cleared) and the held press (Y, then on foot).
cargo test -p leonida-hle 258 passed, 2 ignored; clippy -D warnings clean.
With the release switching unconditionally the test fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Players ask how to clear the cache. Tools gains Clear shader cache: it
deletes the data folder's cache-2 (scripts/play-d3d12.ps1's
LEONIDA_CACHE_DIR: translated shaders, pipelines, the title's prepared
images), after a confirmation that names the folder and its size; refused
while the game runs (started here or not); the saves in <data>/data and
anything else in the data folder are not touched; the next start makes it
again. shader_cache_dir follows a custom Data folder.
New texts in de/es/fr/pt; docs/launcher.md's Tools line says it.
Tests: ClearShaderCacheTests (only cache-2 goes, a read-only file
included, the saves and leonida-settings.txt stay, a second clear says
already empty; refused while running; the default data folder; size_text;
the name is play-d3d12.ps1's). 114 OK; a clear that deletes the whole data
folder fails them. Real window (isolated APPDATA, fake 8 MB cache): the
button on Tools, the confirmation with the folder and "8.0 MB", the cache
gone and the saves kept, then "already empty".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of 6d9a22f58:
- for_card only changed the command line: with nothing changed since the
last PLAY (or none yet), -Chosen none left the F1 menu file's
LEONIDA_FRAME_GEN=2 and LEONIDA_MENU_SMOOTH_MOTION=1 (and a saved
LEONIDA_UPSCALE=dlss) in effect on AMD and Intel. card_chosen adds NoDlss,
NoFrameGen and SmoothMotion to -Chosen there, so play-nvidia.ps1 drops the
menu's values for them as for a typed switch ($switchSettings); the menu's
FSR frame generation stays. The menu file itself is not touched, so an
NVIDIA start later finds them.
- Series S with DLSS Quality and a saved 1440 (left out by the mode): on AMD
-NoDlss -Resolution 1440 stopped the script (Series S outputs 1080 lines).
for_card keeps such a resolution out; 1080 or less, Series X, or one that
was passed already, is unchanged.
Tests: ForCardTests gains card_chosen (AMD adds the three once, NVIDIA and
an unread card unchanged, play_command's -Chosen carries them) and the
resolution cases; test_win_launchers gains a dry run of play-nvidia.ps1 with
an AMD card and a menu file (LEONIDA_UPSCALE=dlss, LEONIDA_FRAME_GEN=2,
Smooth Motion 1; FSR 1): the menu's 2x wins without the names, and with them
the upscale is the stretch, frame generation and Smooth Motion off, FSR kept;
and checks each name maps to a $switchSettings entry. 111 + 12 tests OK;
with card_chosen and for_card as before, both new launcher tests fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of 94950d4a5:
- key_named used `then_some(VK_F1 + n - 1)` and `then_some(VK_NUMPAD0 +
digit)`, which add before the range check: F144 or Numpad160 overflowed u8
(a panic with overflow checks) instead of an "unknown key" warning. Now
`then(|| ...)`.
- With no context measured, Caps Lock's driving table ended on the physical
F, so `vehicle:F=RB` left driving and gave no RB. It now ends on a key just
pressed that is the pad's Y in the driving table (F unless remapped;
Binds::exit_pressed). A key that is Y on foot too switches at once, as F
did; one that is another input on foot keeps the driving table while held
(`leaving`), so its Y reaches the title, and the on-foot table comes when
it is let go. Caps Lock or a measured context drops `leaving`.
Tests: four out-of-range names in bind_entries_read (F144, F255,
Numpad160, Num250); leaving_a_vehicle_by_hand_follows_the_remap
(vehicle:F=RB stays RB and driving; both:G=Y leaves at once with Y; G Y in a
vehicle and RB on foot holds Y until let go, then on-foot W is the stick and
G is RB; Caps Lock while leaving drops it). cargo test -p leonida-hle 258
passed, 2 ignored; clippy -D warnings clean. With the old then_some and the
physical-F rule both tests fail (overflow panic, vehicle:F=RB leaving).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier's review of c22cd85ed: a local folder where the repository
tracks a file (layout/local-notes.txt vs a tracked `layout`), or a local
file where it tracks a folder (`settings` vs settings/defaults.txt), was
replaced by `git checkout HEAD -- .` with no copy in the backup (the
backup takes `--diff-filter=MT`, files only), and the update returned 0.
zip_collisions(repo, paths) names those: a real folder at a path the branch
has as a file, or a file or link at one of a path's parent folders. When
there is one, zip_to_clone stops before the backups and the checkout, says
which ones to move or rename, and removes the new .git: the copy is a zip
copy again, every file as it was.
Tests: two real-git cases (a folder where a file goes, a file where a
folder goes: code not 0, the local content intact, no .git, a zip copy
again, nothing written) and zip_collisions on its own. 109 tests OK; with
zip_collisions returning nothing (the old behaviour) both real-git cases
fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of beb149402 (merzleckeier, ecox982745):
- Parity on malformed values: the launcher's card_memory took byte arrays
of 1 to 8 bytes, the script's decode took 8 or more and cast strings, so
a 5-byte, 9-byte or string value greyed frame generation on one side and
not the other. Both now read only an integer (REG_QWORD/REG_DWORD) or
exactly eight little-endian bytes; anything else is no size.
- A terminating error reading one adapter (Get-ItemProperty, now with
-ErrorAction Stop inside the per-adapter try) and an error while listing
the class (-ErrorAction SilentlyContinue, a foreach over what was listed)
no longer stop the walk before a later adapter's size.
Tests: test_nvidia_frame_generation_with_ray_tracing gains seven cases
(5-byte, 9-byte and string values; an 8 GB integer followed by a 5-byte or
9-byte 24 GB value; an adapter whose read throws before an 8 GB one; a
listing that reports an error before an 8 GB adapter); card_memory's test
gains the 5-byte and 9-byte arrays. tests/test_win_launchers.py 11 OK and
tests/test_leonida_launcher.py OK in Windows PowerShell 5.1; on the
previous script the new cases fail (9-byte and string values, 8 GB + 9-byte
24 GB, the throwing adapter and the listing error).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A player's screenshot did not show that FSR was the frame generation mode:
the chosen segment was a raised grey (#2c2940) with a faint edge on a
#1b1829 card, too close to the others. It is now filled with a deeper shade
of the switches' violet (#7c3aed, white text at 5.7:1; the switches' #8b5cf6
gives 4.2) with white text, as an "on" switch; greyed, the same violet
dimmed, as a greyed "on" switch. Unchosen buttons are unchanged.
Tests: 106 OK. Real window (AMD card stubbed, Series X, FSR): Profile,
Mode, Picture in the window and Ray tracing show their choice in violet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An AMD player (RX 9070) saw DLSS greyed but still on: the greying only
changed the controls, so a saved DLSS choice stayed in PLAY's switches
(no -NoDlss, and -Dlss <mode>, -FrameGen N, -SmoothMotion when saved). On the
Series S profile that asks play-nvidia.ps1 for DLSS on a card that cannot
run it.
for_card(settings, card) gives the settings PLAY passes: without an NVIDIA
card (one read, none NVIDIA) DLSS, its mode, DLSS frame generation's
multiplier and Smooth Motion are off; FSR frame generation and frame
generation Off stay. PLAY, its last_switches and the Play page's options line
use it; the saved settings keep their values, so choosing an NVIDIA card
brings them back. The DLSS and Smooth Motion switches are drawn off while
greyed for the card (Toggle.show_off), and Resolution stays live there
(settings_rules: DLSS's mode only leaves it out on an NVIDIA card).
Tests: ForCardTests (AMD: -NoDlss, no -Dlss/-FrameGen/-SmoothMotion,
-Resolution passed again, saved settings unchanged; FSR and Off kept; NVIDIA
and an unread card unchanged; Resolution live on AMD, greyed on NVIDIA with a
DLSS mode). 106 tests OK; on the launcher before this commit all 5 fail. A
real-window check with a stubbed AMD card: options line "-SeriesS -NoDlss",
both switches greyed and drawn off, the saved DLSS value kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
$vram, the largest HardwareInformation.qwMemorySize of the display class,
cast the value straight to [uint64]. Some drivers write it as eight
little-endian bytes (REG_BINARY); the cast then threw inside the walk's one
try, so the walk stopped there. With the Series X 20 GB rule for frame
generation with ray tracing, an 8 GB card written as bytes kept 2x, and an
integer 8 GB followed by a 24 GB card in bytes left it off, while the
launcher's card_facts (which decodes the bytes) said the opposite
(merzleckeier's review on #3272).
The value is now decoded with [BitConverter]::ToUInt64 when it is a byte
array of eight or more bytes, and each adapter has its own try, so an odd
value skips that adapter only.
Tests: test_nvidia_frame_generation_with_ray_tracing's registry stub takes
several adapters, each an integer or a byte array; four new cases (8 GB and
24 GB as bytes, integer 8 GB + 24 GB bytes, and the reverse order). All 11
tests of tests/test_win_launchers.py pass in Windows PowerShell 5.1; on the
unpatched script the new cases fail exactly as reported (8 GB bytes keeps 2x,
8 GB int + 24 GB bytes leaves it off).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>