fix(menu): the ReShade preset row offers all 27 presets again #3060

Merged
HumanBean merged 2 commits from HumanBean/Longshot:fix/reshade-preset-list into main 2026-12-03 08:02:39 +00:00
Owner

Summary

The Insert menu's ReShade preset row offered only Off, Warm, Cool and User. HDR Vibrance, Depth View, Depth Haze and all twenty Clarity looks (Serfrost and the rest) could not be picked, although the renderer still has them. To see it on main: Graphics β†’ Post-processing, and step through the row.

Since #2822 the menu draws the row from game/mods/graphics/mod.toml, which declared four of the renderer's 27 presets. It also had choicesFrom = "reshadePresets", which by the code appends the player's INI file names after "User", where a pick would select a built-in preset by its number. Those files belong to the User preset file row, which keeps its list.

This declares all 27 in the renderer's order and drops the extra list. Read game/mods/graphics/mod.toml and tests/test_reshade_preset_list.py.

The list is still written in two places; the test fails when they differ. Moving the built-in presets into a system mod, and letting mods ship presets, is separate work to follow.

Testing

Tested: Linux. tests/test_reshade_preset_list.py compiles the renderer's preset_choices() and compares it with the row: it fails on the test commit (4 of 27) and passes with the fix, with g++ and clang++. test_menu_i18n.py, test_settings_link.py and test_menu_hit.py pass. test_menu_ini_keys.py and test_settings_area_keys.py fail on skip_cinematics, a setting this PR doesn't touch (not run on main separately). Not run in the game. mise run test has not finished.

Still to test:

  • Linux or Windows: step through Graphics β†’ Post-processing β†’ ReShade preset, expecting Off, Warm, Cool, User, HDR Vibrance, Depth View, Depth Haze and the twenty Clarity looks, and the picture changing when Serfrost is picked (by hand)
  • The same: restart with Serfrost picked, expecting it kept (by hand)
  • mise run test, expecting no failure that main doesn't have

Measurements

Nothing to measure: the change is a menu row's list of choices.

Risks

A revert is enough. A player who picked one of their own INI names on the preset row has a number saved that now shows the built-in preset it was already selecting.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (not run in the game)
  • mise run test passes (any failure that also fails on main is named). (not finished)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • Screenshots of the same spot on main and here, for a change that shows on screen. (no game run)
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

πŸ€– Generated with Claude Code

## Summary The Insert menu's **ReShade preset** row offered only Off, Warm, Cool and User. HDR Vibrance, Depth View, Depth Haze and all twenty Clarity looks (Serfrost and the rest) could not be picked, although the renderer still has them. To see it on `main`: Graphics β†’ Post-processing, and step through the row. Since #2822 the menu draws the row from `game/mods/graphics/mod.toml`, which declared four of the renderer's 27 presets. It also had `choicesFrom = "reshadePresets"`, which by the code appends the player's INI file names after "User", where a pick would select a built-in preset by its number. Those files belong to the **User preset file** row, which keeps its list. This declares all 27 in the renderer's order and drops the extra list. Read `game/mods/graphics/mod.toml` and `tests/test_reshade_preset_list.py`. The list is still written in two places; the test fails when they differ. Moving the built-in presets into a system mod, and letting mods ship presets, is separate work to follow. ## Testing **Tested:** Linux. `tests/test_reshade_preset_list.py` compiles the renderer's `preset_choices()` and compares it with the row: it fails on the test commit (4 of 27) and passes with the fix, with g++ and clang++. `test_menu_i18n.py`, `test_settings_link.py` and `test_menu_hit.py` pass. `test_menu_ini_keys.py` and `test_settings_area_keys.py` fail on `skip_cinematics`, a setting this PR doesn't touch (not run on `main` separately). Not run in the game. `mise run test` has not finished. **Still to test:** - Linux or Windows: step through Graphics β†’ Post-processing β†’ ReShade preset, expecting Off, Warm, Cool, User, HDR Vibrance, Depth View, Depth Haze and the twenty Clarity looks, and the picture changing when Serfrost is picked (by hand) - The same: restart with Serfrost picked, expecting it kept (by hand) - `mise run test`, expecting no failure that `main` doesn't have ## Measurements Nothing to measure: the change is a menu row's list of choices. ## Risks A revert is enough. A player who picked one of their own INI names on the preset row has a number saved that now shows the built-in preset it was already selecting. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (not run in the game) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (not finished) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. (no game run) - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. πŸ€– Generated with [Claude Code](https://claude.com/claude-code)
Fails on main: the row declares 4 of the 27.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Assisted-by: Claude Code
fix(menu): the ReShade preset row offers all 27 presets again
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m24s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 11m49s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m25s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m30s
CI / Website build and checks (pull_request) Failing after 40s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 45m12s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m9s
cfe18e908c
The graphics system mod declared only Off, Warm, Cool and User since
#2822, and appended the player's INI file names after them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Assisted-by: Claude Code
HumanBean changed title from WIP: fix(menu): the ReShade preset row offers all 27 presets again to fix(menu): the ReShade preset row offers all 27 presets again 2026-12-03 08:02:34 +00:00
HumanBean deleted branch fix/reshade-preset-list 2026-12-03 08:02:39 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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
MagicBeanDev/Longshot!3060
No description provided.