fix(builder): the earlier settings are carried into a profile whose settings.ini holds only the language #3018
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3018
Loading…
Reference in a new issue
No description provided.
Delete branch "PedroRossi/Longshot:fix/carry-settings"
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?
Summary
A player moving to launcher profiles keeps their saves but silently gets the default settings. At a profile's first
play,
carry_saves(build-driver/src/play.rs) copies the earlier saves and settings in, but the settings only when theprofile has no
settings.ini, and one holding onlygame_language=is often there already: the launcher's Gamelanguage row writes it, and so does a build that names a language (
carry_savesruns at the start of the firstplay). The copy doesn't happen. The game's own rule (
host/options_path.chas_settings) treats such a file as "no settings yet";carry_savesnow takes the same rule (language_only): a file with no line butgame_language=andcompile_shaders=gets the earlier settings, its language line kept after them. A file that can't be read is leftalone.
How to see it on main: take a game folder from before profiles whose
longshot_options.iniholds changed settings, witha save, and play it with a new profile from the launcher: the profile's
settings.inistaysgame_language=alone, andthe game runs at the defaults.
As before, the copy runs only while the profile's
saves/is empty and an earlier folder has a save: a player withsettings and no save still gets none carried (not changed here).
Not changed here, and worth fixes of their own: settings with no save are never carried, and on Linux a game folder from before profiles keeps its settings beside the game (
longshot_options.ini), not with the saves in~/.local/share/longshotthatcarry_savescopies from, so they aren't carried either.Read first:
language_onlyand its use incarry_saves.Testing
Tested: game-free: the new test (
a_profile_with_only_a_language_line_still_gets_the_earlier_settings) fails on mainand passes here; build-driver's tests, clippy -D warnings, rustfmt. As
pr createasks for a builder change: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @1938a302with #3018, #3020 and #3021 merged, through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The profile code this changes runs in the launcher's play and build, not in the game.mise run test(--strict) on main @1938a302, and on main with this change merged (together with #3017, #3019, #3020, #3021, #3022, from the same audit): 775 passed, 145 failed, 10 skipped both ways, so none fails only with it. The 145 are named at the end.Still to test:
with a new profile from the launcher, expecting the profile's settings.ini to hold those settings and the language
Measurements
Nothing to measure: one small file copied at a profile's first play.
Risks
Only a profile whose saves are still empty at its first play gets the copy, as before; a profile already played keeps
what it has. A revert undoes it.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.The 145 checks of
mise run testthat fail on main @1938a302on this PC too, with or without this change97 need a tool this PC doesn't have on PATH (
--strictfails them):48 fail on main itself: test_blocks_at_start.py, test_bug_report.py, test_cloth_kernels.py, test_cloth_loops.py, test_cloth_sphere.py, test_cloth_step12.py, test_cloth_step8.py, test_cloth_step9.py, test_control_picture.py, test_crash_record.py, test_crt_options.py, test_dev_update.py, test_dlssg_pace.py, test_draw_stream_visibility.py, test_framegen_resources.py, test_fsr_uniform_ownership.py, test_game_boundary.py, test_guest_holes.py, test_image_reaper_threads.py, test_image_view_retry.py, test_input_background.py, test_keyboard_option.py, test_linux_pressure.py, test_loaded_modules_drop.py, test_log_levels.py, test_menu_keys.py, test_menu_save_atomic.py, test_mesh_first_types.py, test_oot_occ_raster.py, test_option_ids.py, test_perf_send.py, test_pipeline_tour.py, test_present_acquire_ahead.py, test_present_image_free.py, test_present_source_crop.py, test_program_cache_cleanup.py, test_program_cache_one_variant.py, test_readback_timeout_reuse.py, test_recording_admission.py, test_screensaver.py, test_switch_table.py, test_target_retention.py, test_tex_desc_memo.py, test_thinlto_tls.py, test_upscaler_round_trip.py, test_vram_compact.py, test_windows_display_startup.py, test_windows_on_linux.py
Found in an AI-assisted audit of the repository. The test, the fix, the runs and this description were made with Claude Code; I reviewed them.
Co-Authored-By: Claude Opus 5.5 [email protected]
🤖 Generated with Claude Code
Tested in game: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @
1938a302with this change merged (and my two other builder pull requests from the same audit), through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The profile code this changes runs in the launcher's play and build, not in the game.WIP: fix(builder): the earlier settings are carried into a profile whose settings.ini holds only the languageto fix(builder): the earlier settings are carried into a profile whose settings.ini holds only the languagePedroRossi referenced this pull request2026-12-02 17:54:18 +00:00
Settings file has been completely rebuild on
mod-apibranch (merging soon), please test this there and re-open if still present!Pull request closed