feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) #3205

Merged
HumanBean merged 8 commits from dyst/Longshot:feat/save-slots-sysmod into main 2026-12-05 19:41:55 +00:00
Member

Summary

The game has 6 save slots a quest, shared between its autosaves and one manual save. This adds a built-in mod, system/save-slots:

  • Save as New (X on the pause menu's System tab) saves the game into a new slot, through the game's own Save.
  • Pause > Save with two or more manual saves opens a list of them. A on a save opens the game's own Save confirm in the list's place, set to save over that save; X opens the same confirm titled "Save as New", into a new slot; Back on the confirm returns to the list; B on the list goes back. With none or one manual save it is the game's own Save.
  • 50 slots a quest, and one row in Gameplay, Autosaves to keep (1 to 40, 6 by default, after a restart). Nothing a player saved is ever deleted.
  • Continue and Load list every save there is, never fewer than the game's 6 places.
  • The list's bar shows X Save as New beside Select and Back; Save as New from the System tab titles its confirm "Save as New".
  • The list and the confirm change places inside the one Save (src/switch.rs): the list's screen is closed and the confirm loaded, set up for a save and opened with the game's own screen calls, and the Save's button wait is entered again on it. No button press is faked.

Past the game's 6 the two quests take turns over the folders (slot_12, 14, ... and slot_13, 15, ...), so neither writes the other's. An emulator or Hookshot shows only its own 6 of each. docs/dev/reference/saves.md has the table. See #2643.

The core gives the mod: a part pane copied into a layout as the game builds it (game_core::layouts, site layout.build; the list's prompt bar has two slots and needs a third), the buttons the game was given (host_sys::input::buttons_given, #2641), a guest thread's TLS slot, the options and the loading mods before the mods start (#2644), and ui.paneDirty as a core site, as two mods use it now.

Read first: game/mods/save-slots/README.md (every site it uses and why), then slots.rs (which slot a save takes), files.rs (which folder), game/crates/game-core/src/layouts.rs.

This replaces #2818, the same branch: that one's history lists the 1,770 commits of mod-api from before its squash, which its first push carried. Its one comment is on #2818.

It stands alone. Its prompts are clickable with #3219 (every menu prompt clickable), and on a wider picture its list's bar is drawn unstretched with #3218 (the Widescreen fix).

Testing

Tested: on main (2026-12-04), Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), played by hand in a build of main a66fa5fc8 with 657ba2f97: Save as New from the System tab, the save list, saving over an entry and Continue worked. What that run lacked is in 43772e403: the list's X prompt was missing, and the confirm reached by Save as New was titled as Save's (the stretched title and prompts at 21:9 are #3218's).

43772e403, headless through the control bridge (sandbox off), at 16:9 and at 21:9 (HOS_ASPECT=2.3889), from a copy of that run's saves: the list's bar reads Select / Back / Save as New; X in the list saves into a new slot with "Saving…" up (the log: guides hidden, title set); X on the System tab gives a confirm titled "Save as New" that saves into a new slot (7); B after the list restores the pause menu's bar. Not yet played by hand. (43772e403's "Saving…" title for a save from the list is gone: the list now opens the game's own confirm, below.)

c40d3ad21, played by hand (2026-12-04), Windows 11, RTX 3080, 3440x1440, with #3218 merged in: A on a save in the list opened the game's confirm in the list's place five times, and each save from it (three) went over the picked slot (the records after each, in the log). In that build Back on the confirm closed the Save instead of returning to the list (the request's owner was read as a pointer, so an empty owner looked held); c40d3ad21 reads it as a number.

ae3af28fb (the review's fixes), played by hand (2026-12-04), the same PC, with #3218 merged in: A on a save opened the confirm in place, Back there returned to the list and its wait took input again, and X on the System tab saved into a new slot twice under the Save as New title (slots 3 and 4), each save written. X in the list has not been pressed in a hand run of this design yet. Every slot held (no Save as New) is checked by the code and its tests, not in game: 50 saves by hand.

Rebased onto main a66fa5fc8 (2026-12-04), as mod-api is in main since #2822: the branch is one commit. The conflicts were the host's header and what goes beside it: hos_guest_tls_get, hos_guest_tls_set and hos_hid_given are declared in host/game_host.h's ffi-gen part, with their docs, and ffi.rs is generated from it (ffi-gen --check passes); in game_init the early options and the loading mods are set where they were, before the mods start. main's menu test and the settings page's table hold every row of a tab, so "Autosaves to keep" is in both (game/mods/menu/test/menu.test.ts's PLACED, docs/user/graphics-and-controls.md), and its label and help are translated in every language of game/mods/menu/strings (tests/test_i18n_complete.py).

On main, this PC (Windows 11, llvm-mingw): cargo test --workspace --no-fail-fast: this change's crates pass (sysmod-save-slots 18, game-core 413, host-sys 23, longshot-game 214, sites 46); four targets fail in crates this does not change (api's ReShade folder watch, build-compile's header-during-compile, build-driver's tools lock, four of longshot-builder's), not yet run on plain main here. dev.py test-changed's Python checks: the 13 that fail fail the same on plain main a66fa5fc8 on this PC; test_i18n_complete.py failed here alone, and passes now. The runs below were on mod-api before the rebase; the runs on main are above.

Tested (on mod-api, before the rebase): Windows 11, RTX 3080, a build of mod-api 4c498c8aa with this branch, the clickable prompts branch and the Widescreen fix merged (c9c84b690), headless through the control bridge with the sandbox off (HOS_SANDBOX=0), against plain 4c498c8aa where it says so. Not run with this branch alone.

  • 21:9 and 16:9, in play, System tab: Save as New (X) asks, and the confirm saves into slot 9, whose folder is slot_18. Save then opens the list of two manual saves, the new one first; B goes back to the System tab.
  • The folders there before (slot_00 to slot_05, slot_12, slot_14, slot_16) are all still there; slot_18 is the new one.
  • 21:9: the file select with these saves, Continue into play.
  • No crash in any of the runs, and the game ends on request each time.

Saving over an entry, and X in the list into a new save, were run before the rebase (an earlier build) and not again on this one.

cargo test: the mod's 18 pass; game-core 350 pass (346 on plain mod-api). The mod's saved row is in tests/test_menu_ini_keys.py's FROZEN (save_autosaves). Two amends since then changed comments only. cargo test fails on the same four tests here and on plain mod-api on this PC, and on no other: api a_content_mods_changed_module_runs_again_and_its_outputs_are_served, longshot-game a_folder_of_mods_tests_each_of_its_folders, a_mods_profile_sits_inside_the_launchers_save_folder, a_separate_mod_moves_the_saves_into_its_profile_and_records_it. cargo fmt --check names the same four files as plain mod-api does. The checks under tests/: 19 fail here and the same 19 on plain mod-api on this PC.

Still to test:

  • Windows, 21:9: X in the list on ae3af28fb, expecting the confirm titled Save as New and a save into a new slot (by hand)
  • Master Quest: Save as New and the list, expecting the folders slot_13, 15, ... and the normal game's saves untouched (by hand)
  • A long game with many saves: the list scrolled, the autosaves rotating past their count, expecting a manual save never taken (by hand)
  • Linux: the same, and a save folder moved between Windows and Linux (by hand)
  • The mod turned off with saves past 6 on disk: expecting the game's own 6 as they were, the others untouched (by hand)

Known limits: the list's third prompt is drawn by the pause menu's own "Save as New" showing through, not by the overlay (its slot lookup does not reach the copied pane yet; README, "Not yet"). "Save as New" is English only.

Measurements

Not measured: on hot sites it adds a compare to ui.paneDirty and, while a menu is up, a read of the screen's first word to menu.update; the rest acts at a save, in the save list and at a layout's build.

Risks

Saves: the slot choosers (save.chooseAuto, save.chooseManual), the caption manager's size and the folder numbering (save.fileSlot*) are the game's own below slot 6. Saves past 6 are in new folders that older Longshot builds ignore, so going back to one hides them without losing them; the launcher's free-slot placement assumes 6. layout.build changes a layout's shared resource once, for the one layout a mod names. Turn the mod off in the Mods tab for the game's own saves.

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.
  • mise run test passes (any failure that also fails on main is named). Not run on main yet.
  • 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

  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows built; Linux not yet.)
  • A check under tests/ that reads changed source is updated, not weakened (input_background_test.c defines hos_hid_given).
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • Docs updated.
  • 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 game has 6 save slots a quest, shared between its autosaves and one manual save. This adds a built-in mod, `system/save-slots`: - **Save as New** (X on the pause menu's System tab) saves the game into a new slot, through the game's own Save. - **Pause > Save** with two or more manual saves opens a list of them. A on a save opens the game's own Save confirm in the list's place, set to save over that save; X opens the same confirm titled **"Save as New"**, into a new slot; Back on the confirm returns to the list; B on the list goes back. With none or one manual save it is the game's own Save. - **50 slots a quest**, and one row in Gameplay, **Autosaves to keep** (1 to 40, 6 by default, after a restart). Nothing a player saved is ever deleted. - Continue and Load list every save there is, never fewer than the game's 6 places. - The list's bar shows **X Save as New** beside Select and Back; Save as New from the System tab titles its confirm **"Save as New"**. - The list and the confirm change places inside the one Save (`src/switch.rs`): the list's screen is closed and the confirm loaded, set up for a save and opened with the game's own screen calls, and the Save's button wait is entered again on it. No button press is faked. Past the game's 6 the two quests take turns over the folders (`slot_12, 14, ...` and `slot_13, 15, ...`), so neither writes the other's. An emulator or Hookshot shows only its own 6 of each. `docs/dev/reference/saves.md` has the table. See #2643. The core gives the mod: a part pane copied into a layout as the game builds it (`game_core::layouts`, site `layout.build`; the list's prompt bar has two slots and needs a third), the buttons the game was given (`host_sys::input::buttons_given`, #2641), a guest thread's TLS slot, the options and the loading mods before the mods start (#2644), and `ui.paneDirty` as a core site, as two mods use it now. Read first: `game/mods/save-slots/README.md` (every site it uses and why), then `slots.rs` (which slot a save takes), `files.rs` (which folder), `game/crates/game-core/src/layouts.rs`. This replaces #2818, the same branch: that one's history lists the 1,770 commits of `mod-api` from before its squash, which its first push carried. Its one comment is on #2818. It stands alone. Its prompts are clickable with #3219 (every menu prompt clickable), and on a wider picture its list's bar is drawn unstretched with #3218 (the Widescreen fix). ## Testing **Tested:** on `main` (2026-12-04), Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), played by hand in a build of `main` a66fa5fc8 with 657ba2f97: Save as New from the System tab, the save list, saving over an entry and Continue worked. What that run lacked is in 43772e403: the list's X prompt was missing, and the confirm reached by Save as New was titled as Save's (the stretched title and prompts at 21:9 are #3218's). 43772e403, headless through the control bridge (sandbox off), at 16:9 and at 21:9 (`HOS_ASPECT=2.3889`), from a copy of that run's saves: the list's bar reads Select / Back / Save as New; X in the list saves into a new slot with "Saving…" up (the log: guides hidden, title set); X on the System tab gives a confirm titled "Save as New" that saves into a new slot (7); B after the list restores the pause menu's bar. Not yet played by hand. (43772e403's "Saving…" title for a save from the list is gone: the list now opens the game's own confirm, below.) **c40d3ad21, played by hand (2026-12-04),** Windows 11, RTX 3080, 3440x1440, with #3218 merged in: A on a save in the list opened the game's confirm in the list's place five times, and each save from it (three) went over the picked slot (the records after each, in the log). In that build Back on the confirm closed the Save instead of returning to the list (the request's owner was read as a pointer, so an empty owner looked held); c40d3ad21 reads it as a number. **ae3af28fb (the review's fixes), played by hand (2026-12-04),** the same PC, with #3218 merged in: A on a save opened the confirm in place, Back there returned to the list and its wait took input again, and X on the System tab saved into a new slot twice under the Save as New title (slots 3 and 4), each save written. X in the list has not been pressed in a hand run of this design yet. Every slot held (no Save as New) is checked by the code and its tests, not in game: 50 saves by hand. **Rebased onto `main` a66fa5fc8 (2026-12-04)**, as `mod-api` is in `main` since #2822: the branch is one commit. The conflicts were the host's header and what goes beside it: `hos_guest_tls_get`, `hos_guest_tls_set` and `hos_hid_given` are declared in `host/game_host.h`'s ffi-gen part, with their docs, and `ffi.rs` is generated from it (`ffi-gen --check` passes); in `game_init` the early options and the loading mods are set where they were, before the mods start. `main`'s menu test and the settings page's table hold every row of a tab, so "Autosaves to keep" is in both (`game/mods/menu/test/menu.test.ts`'s PLACED, `docs/user/graphics-and-controls.md`), and its label and help are translated in every language of `game/mods/menu/strings` (`tests/test_i18n_complete.py`). **On `main`, this PC (Windows 11, llvm-mingw):** `cargo test --workspace --no-fail-fast`: this change's crates pass (`sysmod-save-slots` 18, `game-core` 413, `host-sys` 23, `longshot-game` 214, `sites` 46); four targets fail in crates this does not change (`api`'s ReShade folder watch, `build-compile`'s header-during-compile, `build-driver`'s tools lock, four of `longshot-builder`'s), not yet run on plain `main` here. `dev.py test-changed`'s Python checks: the 13 that fail fail the same on plain `main` a66fa5fc8 on this PC; `test_i18n_complete.py` failed here alone, and passes now. The runs below were on `mod-api` before the rebase; the runs on `main` are above. **Tested (on `mod-api`, before the rebase):** Windows 11, RTX 3080, a build of `mod-api` 4c498c8aa with this branch, the clickable prompts branch and the Widescreen fix merged (c9c84b690), headless through the control bridge with the sandbox off (`HOS_SANDBOX=0`), against plain 4c498c8aa where it says so. Not run with this branch alone. - 21:9 and 16:9, in play, System tab: **Save as New** (X) asks, and the confirm saves into slot 9, whose folder is `slot_18`. Save then opens the list of two manual saves, the new one first; **B** goes back to the System tab. - The folders there before (`slot_00` to `slot_05`, `slot_12`, `slot_14`, `slot_16`) are all still there; `slot_18` is the new one. - 21:9: the file select with these saves, Continue into play. - No crash in any of the runs, and the game ends on request each time. Saving over an entry, and X in the list into a new save, were run before the rebase (an earlier build) and not again on this one. `cargo test`: the mod's 18 pass; `game-core` 350 pass (346 on plain `mod-api`). The mod's saved row is in `tests/test_menu_ini_keys.py`'s FROZEN (`save_autosaves`). Two amends since then changed comments only. `cargo test` fails on the same four tests here and on plain `mod-api` on this PC, and on no other: `api` `a_content_mods_changed_module_runs_again_and_its_outputs_are_served`, `longshot-game` `a_folder_of_mods_tests_each_of_its_folders`, `a_mods_profile_sits_inside_the_launchers_save_folder`, `a_separate_mod_moves_the_saves_into_its_profile_and_records_it`. `cargo fmt --check` names the same four files as plain `mod-api` does. The checks under `tests/`: 19 fail here and the same 19 on plain `mod-api` on this PC. **Still to test:** - Windows, 21:9: X in the list on ae3af28fb, expecting the confirm titled Save as New and a save into a new slot (by hand) - **Master Quest**: Save as New and the list, expecting the folders `slot_13, 15, ...` and the normal game's saves untouched (by hand) - A long game with many saves: the list scrolled, the autosaves rotating past their count, expecting a manual save never taken (by hand) - Linux: the same, and a save folder moved between Windows and Linux (by hand) - The mod turned off with saves past 6 on disk: expecting the game's own 6 as they were, the others untouched (by hand) **Known limits:** the list's third prompt is drawn by the pause menu's own "Save as New" showing through, not by the overlay (its slot lookup does not reach the copied pane yet; README, "Not yet"). "Save as New" is English only. ## Measurements Not measured: on hot sites it adds a compare to `ui.paneDirty` and, while a menu is up, a read of the screen's first word to `menu.update`; the rest acts at a save, in the save list and at a layout's build. ## Risks Saves: the slot choosers (`save.chooseAuto`, `save.chooseManual`), the caption manager's size and the folder numbering (`save.fileSlot*`) are the game's own below slot 6. Saves past 6 are in new folders that older Longshot builds ignore, so going back to one hides them without losing them; the launcher's free-slot placement assumes 6. `layout.build` changes a layout's shared resource once, for the one layout a mod names. Turn the mod off in the Mods tab for the game's own saves. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). Not run on `main` yet. - [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 - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows built; Linux not yet.) - [x] A check under `tests/` that reads changed source is updated, not weakened (`input_background_test.c` defines `hos_hid_given`). - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] Docs updated. - [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)
feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m0s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m4s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m40s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 48m52s
ed9cdacca5
A built-in mod, system/save-slots: X Save as New on the pause menu's System tab, the manual saves' list on Pause >
Save, 50 slots a quest, and how many autosaves are kept. The core gives it: a part pane copied into a layout as the
game builds it (game_core::layouts, site layout.build), the buttons the game was given (host_sys::input::buttons_given,
a core site, as two mods use it.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 3080, before the rebase onto main: a build of mod-api 4c498c8aa with this branch, headless through the control bridge with the sandbox off. In play at 21:9 and 16:9, System tab: Save as New saved into slot 9 (folder slot_18), Save then opened the list of two manual saves, B went back; the folders there before were all kept; the file select listed the saves and Continue went into play; no crash. Not run on main yet: a run there is next, and Testing will say what it showed.

Tested in game: Windows 11, RTX 3080, before the rebase onto main: a build of mod-api 4c498c8aa with this branch, headless through the control bridge with the sandbox off. In play at 21:9 and 16:9, System tab: Save as New saved into slot 9 (folder slot_18), Save then opened the list of two manual saves, B went back; the folders there before were all kept; the file select listed the saves and Continue went into play; no crash. Not run on main yet: a run there is next, and Testing will say what it showed.
dyst force-pushed feat/save-slots-sysmod from ed9cdacca5
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m0s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m4s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m40s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 48m52s
to 657ba2f972
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-04 21:31:29 +00:00
Compare
fix(saves): the save list's X Save as New prompt shown, "Saving…" while the list's save is written, the confirm titled Save as New
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
43772e4039
The system overlay shows and hides its guides through an array of their panes that holds the layout's two, so the
copied third guide (Pa_Guide_02) was filled but never shown: each show is now given a copy of the array with the third
pane in it, and the list's close hides it again. A save from the list skipped the confirm's Save animation, so nothing
said it was being written: the overlay's title now reads "Saving…" (its guides hidden) from the Save animation's wait
and the SaveEnd wait is held until that has been up a second. A Save begun from the System tab's X prompt titles the
confirm "Save as New".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dyst changed title from WIP: feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) to feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) 2026-12-05 01:47:59 +00:00
BeanBot requested changes 2026-12-05 01:50:28 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Save as New can overwrite an existing save when all slots are occupied, and the new input handoff has a cross-thread data race.

The mod adds manual save slots, a save list, and a configurable autosave count. It expands the save system substantially, but full-slot handling and shared state need correction before players can rely on it.

Blocking (2): must change before merging.

  1. L1 game/mods/save-slots/src/menu.rs:535: When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save. (more on the line) Do: Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten.
  2. L2 host/nn_hid.c:1471: The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it. (more on the line) Do: Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load.

Should fix (1): not blocking, but worth doing before merging.

  • L3 game/mods/save-slots/src/menu.rs:552: The list's Select guide is only installed when a new slot is available. (more on the line) Do: Show Select and Back whenever the list opens, adding Save as New only when a free slot exists.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The final head still needs the save lifecycle exercised in game, including the paths that were not covered by the reported run. When: Master Quest, a long sequence of saves and autosave rotation, and turning the mod off with extra saves have no reported game run; errors in these paths can affect existing saves. Do: Run those scenarios on the final head and verify both quests' folders and existing saves remain intact.
  • L5: The new save and host paths have not been tested on Linux. When: Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. Do: Build and exercise saving, loading, rotation, and a transferred save folder on Linux.

@fix can do L1, L2 and L3.

Questions (2) (not confirmed from the code; they don't hold the recommendation)

  • Can the shared layout resource be extended while another worker is already building from that resource? The extension mutex covers callbacks, but the game build continues after the callback releases it.
  • game/crates/game-core/src/layouts.rs:331: Were these fixture values made from a game file, or independently written from observations of the layout?

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven on the final head: the earlier main-based build was played by hand, and the final head was exercised through the control bridge, but the final UI changes have not been played by hand. This is not a performance change; no performance comparison was supplied.

Other systems: The folder mapping and caption manager affect both quests, existing saves, Continue and Load, and moving saves between Windows and Linux. Master Quest, Linux, a long rotation, and disabling the mod with extra saves remain untested. The shared layout and input hooks also run on worker threads.

Switches: Adds the restart-required save_autosaves setting, default 6, range 1–40; 6 preserves the stated autosave count. The built-in save-slots mod is enabled by default and changes slot handling for both quests.

Reviewed: 43772e4039 against a66fa5fc8a: Read the repository rules and PR template, commit messages, save-slots README, slots.rs, files.rs, config.rs, newsave.rs, menu.rs, choose.rs production logic, game-core layouts.rs, mod registration and hooks, and the relevant input and host diffs. Skimmed the remaining diff, tests, documentation, site declarations, and generated bindings; did not read every changed file in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance in their trailers.
  • The documented extended folder mapping assigns distinct folders to normal and Master Quest slots.
  • The saved autosave setting is registered in the frozen settings-key test.

Testing: No code, scripts, builds, or tests were run during this review. The supplied CI checks were still running.

Overlaps and merge order: The PR describes #2818 as the replaced branch and identifies #3218 and #3219 as related UI changes; their diffs were not available for an overlap review.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Save as New can overwrite an existing save when all slots are occupied, and the new input handoff has a cross-thread data race. The mod adds manual save slots, a save list, and a configurable autosave count. It expands the save system substantially, but full-slot handling and shared state need correction before players can rely on it. **Blocking (2)**: must change before merging. 1. **L1** `game/mods/save-slots/src/menu.rs:535`: When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save. (more on the line) **Do:** Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten. 2. **L2** `host/nn_hid.c:1471`: The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it. (more on the line) **Do:** Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `game/mods/save-slots/src/menu.rs:552`: The list's Select guide is only installed when a new slot is available. (more on the line) **Do:** Show Select and Back whenever the list opens, adding Save as New only when a free slot exists. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The final head still needs the save lifecycle exercised in game, including the paths that were not covered by the reported run. *When:* Master Quest, a long sequence of saves and autosave rotation, and turning the mod off with extra saves have no reported game run; errors in these paths can affect existing saves. **Do:** Run those scenarios on the final head and verify both quests' folders and existing saves remain intact. - **L5**: The new save and host paths have not been tested on Linux. *When:* Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. **Do:** Build and exercise saving, loading, rotation, and a transferred save folder on Linux. `@fix` can do L1, L2 and L3. **Questions (2)** (not confirmed from the code; they don't hold the recommendation) - Can the shared layout resource be extended while another worker is already building from that resource? The extension mutex covers callbacks, but the game build continues after the callback releases it. - `game/crates/game-core/src/layouts.rs:331`: Were these fixture values made from a game file, or independently written from observations of the layout? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the final head: the earlier main-based build was played by hand, and the final head was exercised through the control bridge, but the final UI changes have not been played by hand. This is not a performance change; no performance comparison was supplied. **Other systems:** The folder mapping and caption manager affect both quests, existing saves, Continue and Load, and moving saves between Windows and Linux. Master Quest, Linux, a long rotation, and disabling the mod with extra saves remain untested. The shared layout and input hooks also run on worker threads. **Switches:** Adds the restart-required save_autosaves setting, default 6, range 1–40; 6 preserves the stated autosave count. The built-in save-slots mod is enabled by default and changes slot handling for both quests. **Reviewed:** 43772e4039dd against a66fa5fc8a90: Read the repository rules and PR template, commit messages, save-slots README, slots.rs, files.rs, config.rs, newsave.rs, menu.rs, choose.rs production logic, game-core layouts.rs, mod registration and hooks, and the relevant input and host diffs. Skimmed the remaining diff, tests, documentation, site declarations, and generated bindings; did not read every changed file in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance in their trailers. - The documented extended folder mapping assigns distinct folders to normal and Master Quest slots. - The saved autosave setting is registered in the frozen settings-key test. **Testing:** No code, scripts, builds, or tests were run during this review. The supplied CI checks were still running. **Overlaps and merge order:** The PR describes #2818 as the replaced branch and identifies #3218 and #3219 as related UI changes; their diffs were not available for an overlap review. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -0,0 +532,4 @@
let titled = screen != 0 && buf != 0 && set_title(g, screen, buf + 128);
log::say(format!("save as new: the confirm saves into slot {new_slot} (titled: {titled})"));
} else {
log::say("save as new: every slot is held: the game's own Save".to_owned());
Member

L1 (blocking): When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save.

When: With all 50 slots occupied, X on the System tab still opens a confirmation; confirming uses the normal manual chooser and overwrites an existing manual save, despite the player asking for a new slot.

Do: Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten.

**L1** (blocking): When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save. *When:* With all 50 slots occupied, X on the System tab still opens a confirmation; confirming uses the normal manual chooser and overwrites an existing manual save, despite the player asking for a new slot. **Do:** Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten.
@ -0,0 +549,4 @@
B_BEFORE.store(pad(l::PAD_B), Ordering::Relaxed);
X_BEFORE.store(pad(l::PAD_X), Ordering::Relaxed);
set(State::Begun);
if new_slot >= 0 {
Member

L3 (should fix): The list's Select guide is only installed when a new slot is available.

When: With all 50 slots occupied and at least two manual saves, Pause > Save opens the overwrite list but retains the overlay's Back-only guide, even though A selects a save.

Do: Show Select and Back whenever the list opens, adding Save as New only when a free slot exists.

**L3** (should fix): The list's Select guide is only installed when a new slot is available. *When:* With all 50 slots occupied and at least two manual saves, Pause > Save opens the overwrite list but retains the overlay's Back-only guide, even though A selects a save. **Do:** Show Select and Back whenever the list opens, adding Save as New only when a free slot exists.
host/nn_hid.c Outdated
@ -1465,6 +1468,7 @@ static void npad_states(Ctx *c) {
}
if (connected) oc_track(word); /* (the note buttons of the try, for the songs: game-core's ocarina) */
game_menu_input(word);
if (connected) hos_hid_given = word;
Member

L2 (blocking): The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it.

When: A HID read can write hos_hid_given while a menu worker calls buttons_given. Those conflicting accesses form a data race, so button detection has undefined behavior.

Do: Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load.

**L2** (blocking): The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it. *When:* A HID read can write hos_hid_given while a menu worker calls buttons_given. Those conflicting accesses form a data race, so button detection has undefined behavior. **Do:** Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load.
dyst changed title from feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) to WIP: feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) 2026-12-05 01:51:40 +00:00
Author
Member

Back to work in progress: the "Saving…" shown after a save from the list (43772e403) isn't right in play. It is to be redone to look like the game's own save.

Back to work in progress: the "Saving…" shown after a save from the list (43772e403) isn't right in play. It is to be redone to look like the game's own save.
fix(saves): a pick or Save as New in the save list opens the game's own confirm in its place, Back there the list again
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
c40d3ad211
The list saved by itself, with a "Saving…" title of its own in place of the confirm's card and animations. Now, inside
the one Save, A on a save or X closes the list and opens the game's own confirm in its place, as the title's Load goes
between its list and its confirm: the card of the game as it is now, Save and Back, the game's own saving and caption,
over the picked slot (A) or into the lowest free one (X, titled "Save as New"). Back on that confirm closes it and opens
the list again. Save.module waits on one screen and has no way back, so its button wait's update (save.listWaitUpdate)
is held while the screens change places with the steps its own screen nodes take (close and unload, load, the
confirm's setup, open), and the wait is then entered again on the new screen. The caption the list made by hand, and
the two locations only it used, are gone.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dyst changed title from WIP: feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) to feat(saves): save slots as a system mod: Save as New, a save list, 50 slots a quest, a set number of autosaves (#2643) 2026-12-05 03:42:43 +00:00
BeanBot requested changes 2026-12-05 03:43:42 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Save as New can overwrite an existing save when all slots are occupied, and the input word is accessed concurrently without an atomic C write. The full-list Select guide is also still missing.

The change adds manual save slots, a save list and configurable autosave retention. The latest commit uses the game's own confirmation screen for saves from the list, but the earlier full-slot and input synchronization defects remain.

Blocking (2): must change before merging.

  1. L1 game/mods/save-slots/src/menu.rs:535: When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save. When: With all 50 slots occupied, X on the System tab still opens a confirmation; confirming uses the normal manual chooser and overwrites an existing manual save, despite the player asking for a new slot. Do: Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten.
  2. L2 host/nn_hid.c:1471: The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it. When: A HID read can write hos_hid_given while a menu worker calls buttons_given. Those conflicting accesses form a data race, so button detection has undefined behavior. Do: Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load.

Should fix (1): not blocking, but worth doing before merging.

  • L3 game/mods/save-slots/src/menu.rs:552: The list's Select guide is only installed when a new slot is available. When: With all 50 slots occupied and at least two manual saves, Pause > Save opens the overwrite list but retains the overlay's Back-only guide, even though A selects a save. Do: Show Select and Back whenever the list opens, adding Save as New only when a free slot exists.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The final head still needs the save lifecycle exercised in game, including the paths that were not covered by the reported run. When: Master Quest, a long sequence of saves and autosave rotation, and turning the mod off with extra saves have no reported game run; errors in these paths can affect existing saves. Do: Run those scenarios on the final head and verify both quests' folders and existing saves remain intact.
  • L5: The new save and host paths have not been tested on Linux. When: Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. Do: Build and exercise saving, loading, rotation, and a transferred save folder on Linux.

@fix can do L1, L2 and L3.

Since the last review (on 43772e4039)
Still open: L1 (When no slot is free, Save as New falls through to the ordinary save instead of refusing t…); L2 (The input word is written through a volatile C object while Rust reads it as an atomic fro…); L3 (The list's Select guide is only installed when a new slot is available.); L4 (The final head still needs the save lifecycle exercised in game, including the paths that…); L5 (The new save and host paths have not been tested on Linux.)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: reported Windows runs exercised several save paths, but Back to the list and X from the list have not been run with the current fix.

Other systems: Linux and moving saves between Windows and Linux remain untested. Master Quest, autosave rotation, large save lists and disabling the mod with extra saves also need the reported lifecycle run.

Switches: Autosaves to keep is added, default 6, range 1–40, applied after restart. The system mod can be disabled; its extra save folders remain on disk.

Reviewed: c40d3ad211 against a66fa5fc8a: Read the changed menu and switch diff, the relevant save-list and Save as New paths, and the input writer and reader. Skimmed repository rules and the PR template. The full base diff and all changed files were not read in full.; nothing run (a code review).

Checked and fine:

  • The list's X path checks that a new slot exists before selecting it.
  • The latest change retains the save list and routes its selections to the game's confirmation screen.

Testing: No commands from the project or tests were run. The PR reports Windows testing; CI is still running.

Overlaps and merge order: The PR identifies #2818 as the replaced pull request and names #3218 and #3219 as related changes.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Save as New can overwrite an existing save when all slots are occupied, and the input word is accessed concurrently without an atomic C write. The full-list Select guide is also still missing. The change adds manual save slots, a save list and configurable autosave retention. The latest commit uses the game's own confirmation screen for saves from the list, but the earlier full-slot and input synchronization defects remain. **Blocking (2)**: must change before merging. 1. **L1** `game/mods/save-slots/src/menu.rs:535`: When no slot is free, Save as New falls through to the ordinary save instead of refusing the new save. *When:* With all 50 slots occupied, X on the System tab still opens a confirmation; confirming uses the normal manual chooser and overwrites an existing manual save, despite the player asking for a new slot. **Do:** Disable or reject Save as New when there is no free slot, and tell the player why before any existing save can be overwritten. 2. **L2** `host/nn_hid.c:1471`: The input word is written through a volatile C object while Rust reads it as an atomic from other threads; volatile does not make the C write atomic or synchronize it. *When:* A HID read can write hos_hid_given while a menu worker calls buttons_given. Those conflicting accesses form a data race, so button detection has undefined behavior. **Do:** Declare and access the shared word atomically on both sides, using a compatible C atomic store and Rust atomic load. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `game/mods/save-slots/src/menu.rs:552`: The list's Select guide is only installed when a new slot is available. *When:* With all 50 slots occupied and at least two manual saves, Pause > Save opens the overwrite list but retains the overlay's Back-only guide, even though A selects a save. **Do:** Show Select and Back whenever the list opens, adding Save as New only when a free slot exists. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The final head still needs the save lifecycle exercised in game, including the paths that were not covered by the reported run. *When:* Master Quest, a long sequence of saves and autosave rotation, and turning the mod off with extra saves have no reported game run; errors in these paths can affect existing saves. **Do:** Run those scenarios on the final head and verify both quests' folders and existing saves remain intact. - **L5**: The new save and host paths have not been tested on Linux. *When:* Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. **Do:** Build and exercise saving, loading, rotation, and a transferred save folder on Linux. `@fix` can do L1, L2 and L3. **Since the last review** (on 43772e4039dd) Still open: L1 (When no slot is free, Save as New falls through to the ordinary save instead of refusing t…); L2 (The input word is written through a volatile C object while Rust reads it as an atomic fro…); L3 (The list's Select guide is only installed when a new slot is available.); L4 (The final head still needs the save lifecycle exercised in game, including the paths that…); L5 (The new save and host paths have not been tested on Linux.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: reported Windows runs exercised several save paths, but Back to the list and X from the list have not been run with the current fix. **Other systems:** Linux and moving saves between Windows and Linux remain untested. Master Quest, autosave rotation, large save lists and disabling the mod with extra saves also need the reported lifecycle run. **Switches:** Autosaves to keep is added, default 6, range 1–40, applied after restart. The system mod can be disabled; its extra save folders remain on disk. **Reviewed:** c40d3ad21146 against a66fa5fc8a90: Read the changed menu and switch diff, the relevant save-list and Save as New paths, and the input writer and reader. Skimmed repository rules and the PR template. The full base diff and all changed files were not read in full.; nothing run (a code review). **Checked and fine:** - The list's X path checks that a new slot exists before selecting it. - The latest change retains the save list and routes its selections to the game's confirmation screen. **Testing:** No commands from the project or tests were run. The PR reports Windows testing; CI is still running. **Overlaps and merge order:** The PR identifies #2818 as the replaced pull request and names #3218 and #3219 as related changes. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.</sub>
Merge branch 'main' into feat/save-slots-sysmod
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
55459ddf20
BeanBot's review of #3205:
- With all 50 slots of the quest held, the System tab shows no X Save as New and X does nothing; a Save as New whose
  slots filled since the X goes on as Save (the list, or the game's confirm), never into an existing save unasked.
- The save list shows A Select and B Back with or without a free slot, X Save as New only with one.
- hos_hid_given is written with an atomic store, as host-sys reads it as an AtomicU64.
- layouts.rs's test tree is a made-up one.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge commit '55459ddf2' into feat/save-slots-sysmod
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
6487051ad2
Author
Member

On BeanBot's review (c40d3ad21), answered in ae3af28fb (the head, 6487051ad, is it merged with the branch's merge of main, 55459ddf2):

  • L1, Save as New with every slot held: fixed. With all 50 slots of the quest held, the System tab shows no X Save as New and X does nothing (the log says why); Pause > Save, with its list, is how a save is overwritten then. If the slots fill between the X and the Save's start, the Save goes on as Save (the list with two or more manual saves, else the game's confirm, which shows the save it replaces), never into an existing save under the Save as New title. The README's "What the player sees" says so.
  • L2, hos_hid_given: fixed. nn_hid.c writes it with __atomic_store_n(..., __ATOMIC_RELAXED), as host-sys loads it as an AtomicU64 (relaxed: a word of buttons, nothing published with it). The declaration stays volatile uint64_t, as ffi-gen maps it. (hos_hid_buttons beside it, cheats.c's, is written the same old way; it is not this PR's.)
  • L3, the list's Select: fixed. The list shows A Select and B Back with or without a free slot, and X Save as New only with one (Prompts::List { new } in menu.rs).
  • L4, L5 (Master Quest, a long rotation, the mod off with saves past 6, Linux): still to test, as Testing lists them.

The questions:

  • A layout's resource extended while another worker builds from it: the extension runs once per run, at the first build of SystemOverlay_00 after the mod asks (at its start), under layouts.rs's lock against other extensions, but not against the game's own readers. The new arrays are complete before the table points at them, the old ones are kept (never freed) with the same first entries, and the count is written last. So a build that reads the count and then the arrays sees a consistent table. One window is left: a build that read an array's address before the swap and the count after it would read one entry past the old array. That needs the same layout built on two threads during that one extension. Not seen in any run; I can't close it without a lock the game's builder takes too.
  • layouts.rs's test values: they described the system overlay's pane tree (13 pairs of a parent's index and a subtree's end). ae3af28fb replaces them with a made-up tree that tests the same two cases, so the test holds nothing of the game's.

Checks on ae3af28fb, this PC (Windows 11, llvm-mingw): cargo fmt --check, cargo test and cargo clippy for sysmod-save-slots (19 pass), game-core (413) and host-sys (7); clippy names no line of this PR (build-core's and host-sys's one warning each are main's).

On BeanBot's review (c40d3ad21), answered in ae3af28fb (the head, 6487051ad, is it merged with the branch's merge of `main`, 55459ddf2): - **L1, Save as New with every slot held:** fixed. With all 50 slots of the quest held, the System tab shows no X Save as New and X does nothing (the log says why); Pause > Save, with its list, is how a save is overwritten then. If the slots fill between the X and the Save's start, the Save goes on as Save (the list with two or more manual saves, else the game's confirm, which shows the save it replaces), never into an existing save under the Save as New title. The README's "What the player sees" says so. - **L2, `hos_hid_given`:** fixed. `nn_hid.c` writes it with `__atomic_store_n(..., __ATOMIC_RELAXED)`, as `host-sys` loads it as an `AtomicU64` (relaxed: a word of buttons, nothing published with it). The declaration stays `volatile uint64_t`, as ffi-gen maps it. (`hos_hid_buttons` beside it, cheats.c's, is written the same old way; it is not this PR's.) - **L3, the list's Select:** fixed. The list shows A Select and B Back with or without a free slot, and X Save as New only with one (`Prompts::List { new }` in `menu.rs`). - **L4, L5 (Master Quest, a long rotation, the mod off with saves past 6, Linux):** still to test, as Testing lists them. The questions: - **A layout's resource extended while another worker builds from it:** the extension runs once per run, at the first build of `SystemOverlay_00` after the mod asks (at its start), under `layouts.rs`'s lock against other extensions, but not against the game's own readers. The new arrays are complete before the table points at them, the old ones are kept (never freed) with the same first entries, and the count is written last. So a build that reads the count and then the arrays sees a consistent table. One window is left: a build that read an array's address before the swap and the count after it would read one entry past the old array. That needs the same layout built on two threads during that one extension. Not seen in any run; I can't close it without a lock the game's builder takes too. - **`layouts.rs`'s test values:** they described the system overlay's pane tree (13 pairs of a parent's index and a subtree's end). ae3af28fb replaces them with a made-up tree that tests the same two cases, so the test holds nothing of the game's. Checks on ae3af28fb, this PC (Windows 11, llvm-mingw): `cargo fmt --check`, `cargo test` and `cargo clippy` for `sysmod-save-slots` (19 pass), `game-core` (413) and `host-sys` (7); clippy names no line of this PR (`build-core`'s and `host-sys`'s one warning each are `main`'s).
Owner
@rebase
Member

This pull request has merge commits, so I brought it up to date by merging main (4007f6eae4) into it rather than rebasing (its history stays as it is): the new head is 711ee7d00c.

Conflicts resolved

  • de.json: Kept autosave, MAKO, and aiming translations from both sides.
  • es-419.json: Kept autosave, MAKO, and aiming translations from both sides.
  • es.json: Kept autosave, MAKO, and aiming translations from both sides.
  • fr.json: Kept autosave, MAKO, and aiming translations from both sides.
  • it.json: Kept autosave, MAKO, and aiming translations from both sides.
  • ja.json: Kept autosave, MAKO, and aiming translations from both sides.
  • ko.json: Kept autosave, MAKO, and aiming translations from both sides.
  • nl.json: Kept autosave, MAKO, and aiming translations from both sides.
  • pl.json: Kept autosave, MAKO, and aiming translations from both sides.
  • pt-BR.json: Kept autosave, MAKO, and aiming translations from both sides.
  • ru.json: Kept autosave, MAKO, and aiming translations from both sides.
  • zh-Hans.json: Kept autosave, MAKO, and aiming translations from both sides.
  • zh-Hant.json: Kept autosave, MAKO, and aiming translations from both sides.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

This pull request has merge commits, so I brought it up to date by merging `main` (4007f6eae45b) into it rather than rebasing (its history stays as it is): the new head is 711ee7d00c90. **Conflicts resolved** - de.json: Kept autosave, MAKO, and aiming translations from both sides. - es-419.json: Kept autosave, MAKO, and aiming translations from both sides. - es.json: Kept autosave, MAKO, and aiming translations from both sides. - fr.json: Kept autosave, MAKO, and aiming translations from both sides. - it.json: Kept autosave, MAKO, and aiming translations from both sides. - ja.json: Kept autosave, MAKO, and aiming translations from both sides. - ko.json: Kept autosave, MAKO, and aiming translations from both sides. - nl.json: Kept autosave, MAKO, and aiming translations from both sides. - pl.json: Kept autosave, MAKO, and aiming translations from both sides. - pt-BR.json: Kept autosave, MAKO, and aiming translations from both sides. - ru.json: Kept autosave, MAKO, and aiming translations from both sides. - zh-Hans.json: Kept autosave, MAKO, and aiming translations from both sides. - zh-Hant.json: Kept autosave, MAKO, and aiming translations from both sides. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Merge main into feat/save-slots-sysmod
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
711ee7d00c
# Conflicts:
#	game/mods/menu/strings/de.json
#	game/mods/menu/strings/es-419.json
#	game/mods/menu/strings/es.json
#	game/mods/menu/strings/fr.json
#	game/mods/menu/strings/it.json
#	game/mods/menu/strings/ja.json
#	game/mods/menu/strings/ko.json
#	game/mods/menu/strings/nl.json
#	game/mods/menu/strings/pl.json
#	game/mods/menu/strings/pt-BR.json
#	game/mods/menu/strings/ru.json
#	game/mods/menu/strings/zh-Hans.json
#	game/mods/menu/strings/zh-Hant.json
BeanBot requested changes 2026-12-05 17:58:44 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Save as New is blocked when all slots are already full, but it still falls through to an ordinary save if the last slot fills before the Save starts. That leaves the original overwrite risk in the remaining path.

The built-in save-slots mod adds manual save selection, Save as New, up to 50 slots per quest, and configurable autosave retention. The fix improves full-slot handling and makes the input word atomic, but the save lifecycle still needs coverage on the remaining paths and Linux.

Blocking (1): must change before merging.

  1. L1 game/mods/save-slots/src/menu.rs:535: A Save as New request still falls through to an ordinary Save when no free slot remains at Save start. When: If the last free slot is taken between the System tab's X check and begin(), begin() proceeds to the ordinary list or confirm, which can overwrite an existing save. Do: Cancel or refuse the requested Save as New when begin() finds no free slot, rather than entering the ordinary Save path.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The remaining save lifecycle paths need an in-game run. When: X from the list, Master Quest, long autosave rotation and disabling the mod with extended saves have not been exercised in the reported final-design hand runs. Do: Run those paths in game and verify the selected and existing saves and quest folders.
  • L5: The new save and host paths have not been tested on Linux. When: Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. Do: Build and exercise saving, loading, rotation, and a transferred save folder on Linux.

@fix can do L1.

Since the last review (on c40d3ad211)
Resolved: L2 (The input word is written through a volatile C object while Rust reads it as an atomic fro…); L3 (The list's Select guide is only installed when a new slot is available.)
Still open: L1 (A Save as New request still falls through to an ordinary Save when no free slot remains at…); L4 (The remaining save lifecycle paths need an in-game run.); L5 (The new save and host paths have not been tested on Linux.)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • The layout resource extension can race with a concurrent game reader, as described in the author's comment.
More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported Windows hand runs demonstrate manual overwrite, Back to list, and Save as New from the System tab; X from the list and several save lifecycle cases remain untested. This is not a performance change.

Other systems: The change affects save files, both quests, the save UI, input and host code on Windows and Linux. Master Quest, long rotations, disabling the mod with extended saves, and Linux save portability remain untested in game.

Switches: Adds Autosaves to keep (save_autosaves), 1–40, default 6, applied after restart; the default preserves the game's existing count. The built-in save-slots mod can also be disabled for the next run.

Reviewed: 711ee7d00c against 4007f6eae4: Read AGENTS.md, CONTRIBUTING.md, save-slots README, newsave.rs, slots.rs, menu.rs and host-sys input.rs; inspected the changed-line diff, relevant input declarations and stores, commit log and diff summary. The remaining changed files, full base diff, translations and reported runs were not read in full.; nothing run (a code review).

Checked and fine:

  • The full-list prompt path now installs Select and Back even without a free slot.
  • The host input word's writer and Rust reader both use relaxed atomic access.

Testing: No commands that build or run the project were executed. The author reports Windows hand runs and crate tests; CI is still running.

Overlaps and merge order: The description says this replaces #2818; #3218 and #3219 are optional related changes.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Save as New is blocked when all slots are already full, but it still falls through to an ordinary save if the last slot fills before the Save starts. That leaves the original overwrite risk in the remaining path. The built-in save-slots mod adds manual save selection, Save as New, up to 50 slots per quest, and configurable autosave retention. The fix improves full-slot handling and makes the input word atomic, but the save lifecycle still needs coverage on the remaining paths and Linux. **Blocking (1)**: must change before merging. 1. **L1** `game/mods/save-slots/src/menu.rs:535`: A Save as New request still falls through to an ordinary Save when no free slot remains at Save start. *When:* If the last free slot is taken between the System tab's X check and begin(), begin() proceeds to the ordinary list or confirm, which can overwrite an existing save. **Do:** Cancel or refuse the requested Save as New when begin() finds no free slot, rather than entering the ordinary Save path. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The remaining save lifecycle paths need an in-game run. *When:* X from the list, Master Quest, long autosave rotation and disabling the mod with extended saves have not been exercised in the reported final-design hand runs. **Do:** Run those paths in game and verify the selected and existing saves and quest folders. - **L5**: The new save and host paths have not been tested on Linux. *When:* Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. **Do:** Build and exercise saving, loading, rotation, and a transferred save folder on Linux. `@fix` can do L1. **Since the last review** (on c40d3ad21146) Resolved: L2 (The input word is written through a volatile C object while Rust reads it as an atomic fro…); L3 (The list's Select guide is only installed when a new slot is available.) Still open: L1 (A Save as New request still falls through to an ordinary Save when no free slot remains at…); L4 (The remaining save lifecycle paths need an in-game run.); L5 (The new save and host paths have not been tested on Linux.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The layout resource extension can race with a concurrent game reader, as described in the author's comment. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported Windows hand runs demonstrate manual overwrite, Back to list, and Save as New from the System tab; X from the list and several save lifecycle cases remain untested. This is not a performance change. **Other systems:** The change affects save files, both quests, the save UI, input and host code on Windows and Linux. Master Quest, long rotations, disabling the mod with extended saves, and Linux save portability remain untested in game. **Switches:** Adds Autosaves to keep (save_autosaves), 1–40, default 6, applied after restart; the default preserves the game's existing count. The built-in save-slots mod can also be disabled for the next run. **Reviewed:** 711ee7d00c90 against 4007f6eae45b: Read AGENTS.md, CONTRIBUTING.md, save-slots README, newsave.rs, slots.rs, menu.rs and host-sys input.rs; inspected the changed-line diff, relevant input declarations and stores, commit log and diff summary. The remaining changed files, full base diff, translations and reported runs were not read in full.; nothing run (a code review). **Checked and fine:** - The full-list prompt path now installs Select and Back even without a free slot. - The host input word's writer and Rust reader both use relaxed atomic access. **Testing:** No commands that build or run the project were executed. The author reports Windows hand runs and crate tests; CI is still running. **Overlaps and merge order:** The description says this replaces #2818; #3218 and #3219 are optional related changes. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
Author
Member

On BeanBot's review 3513 (711ee7d00):

  • L1, Save as New with no free slot at the Save's start: kept as it is, by design. Overwriting is the game's default, so Save is the fallback, not a cancel. With every slot of the quest held, the System tab shows no X Save as New and X does nothing, so the game's Save is the only option. If the last slot fills between the X and the Save's start, or the slots couldn't be read at the X, the Save goes on as the player's own Save would. Nothing is overwritten without the player choosing it: with every slot held there are always ten or more manual saves (at most 40 autosaves of 50 slots), so it is the save list, titled Save, where the player picks the save to overwrite or backs out with B. The README's "What the player sees" says so.
  • L4, L5 (Master Quest, a long rotation, the mod off with saves past 6, Linux): still to test, as Testing lists them.
  • The layout resource extended while another thread builds from it: as answered in the last reply (104995): the one window left needs the same layout built on two threads during the one extension, and closing it needs a lock that the game's builder also takes.

No new commit: the head stays 711ee7d00 (BeanBot's merge of main).

On BeanBot's review 3513 (711ee7d00): - **L1, Save as New with no free slot at the Save's start:** kept as it is, by design. Overwriting is the game's default, so Save is the fallback, not a cancel. With every slot of the quest held, the System tab shows no X Save as New and X does nothing, so the game's Save is the only option. If the last slot fills between the X and the Save's start, or the slots couldn't be read at the X, the Save goes on as the player's own Save would. Nothing is overwritten without the player choosing it: with every slot held there are always ten or more manual saves (at most 40 autosaves of 50 slots), so it is the save list, titled Save, where the player picks the save to overwrite or backs out with B. The README's "What the player sees" says so. - **L4, L5 (Master Quest, a long rotation, the mod off with saves past 6, Linux):** still to test, as Testing lists them. - **The layout resource extended while another thread builds from it:** as answered in the last reply (104995): the one window left needs the same layout built on two threads during the one extension, and closing it needs a lock that the game's builder also takes. No new commit: the head stays 711ee7d00 (BeanBot's merge of `main`).
Owner
@rebase
Member

This pull request has merge commits, so I brought it up to date by merging main (302cdf0352) into it rather than rebasing (its history stays as it is): the new head is f809fcd6f9.

Conflicts resolved

  • de.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • es-419.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • es.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • fr.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • it.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • ja.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • ko.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • nl.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • pl.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • pt-BR.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • ru.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • zh-Hans.json: Kept the autosave translations and the base branch’s anti-aliasing translations.
  • zh-Hant.json: Kept the autosave translations and the base branch’s anti-aliasing translations.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

This pull request has merge commits, so I brought it up to date by merging `main` (302cdf0352b7) into it rather than rebasing (its history stays as it is): the new head is f809fcd6f98f. **Conflicts resolved** - de.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - es-419.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - es.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - fr.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - it.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - ja.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - ko.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - nl.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - pl.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - pt-BR.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - ru.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - zh-Hans.json: Kept the autosave translations and the base branch’s anti-aliasing translations. - zh-Hant.json: Kept the autosave translations and the base branch’s anti-aliasing translations. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Merge main into feat/save-slots-sysmod
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 15s
f809fcd6f9
# Conflicts:
#	game/mods/menu/strings/de.json
#	game/mods/menu/strings/es-419.json
#	game/mods/menu/strings/es.json
#	game/mods/menu/strings/fr.json
#	game/mods/menu/strings/it.json
#	game/mods/menu/strings/ja.json
#	game/mods/menu/strings/ko.json
#	game/mods/menu/strings/nl.json
#	game/mods/menu/strings/pl.json
#	game/mods/menu/strings/pt-BR.json
#	game/mods/menu/strings/ru.json
#	game/mods/menu/strings/zh-Hans.json
#	game/mods/menu/strings/zh-Hant.json
BeanBot left a comment

Recommendation: Request changes. Save as New still becomes an ordinary Save if the last free slot disappears before Save starts. The remaining save lifecycle and Linux runs are also outstanding.

The system mod adds a save list, Save as New, up to 50 slots per quest, and configurable autosave retention. It expands save management but adds complexity to save selection and folder handling.

Blocking (1): must change before merging.

  1. L1 game/mods/save-slots/src/menu.rs:535: A Save as New request still falls through to an ordinary Save when no free slot remains at Save start. When: If the last free slot is taken between the System tab's X check and begin(), begin() proceeds to the ordinary list or confirm, which can overwrite an existing save. Do: Cancel or refuse the requested Save as New when begin() finds no free slot, rather than entering the ordinary Save path.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The remaining save lifecycle paths need an in-game run. When: X from the list, Master Quest, long autosave rotation and disabling the mod with extended saves have not been exercised in the reported final-design hand runs. Do: Run those paths in game and verify the selected and existing saves and quest folders.
  • L5: The new save and host paths have not been tested on Linux. When: Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. Do: Build and exercise saving, loading, rotation, and a transferred save folder on Linux.

@fix can do L1.

Since the last review (on 711ee7d00c)
Still open: L1 (A Save as New request still falls through to an ordinary Save when no free slot remains at…); L4 (The remaining save lifecycle paths need an in-game run.); L5 (The new save and host paths have not been tested on Linux.)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: recorded Windows runs demonstrate several save and list paths, but X from the list, Master Quest, extended rotation, disabling the mod with extended saves, and Linux remain untested in game.

Other systems: The change affects both quests, existing and extended save folders, the host input and thread interfaces, and layout resources. Windows has recorded play results; Linux and cross-platform save movement remain untested.

Switches: Autosaves to keep is added as a Gameplay setting, default 6, range 1–40, taking effect after restart. The recorded runs do not yet establish its behavior through a long rotation.

Reviewed: f809fcd6f9 against 302cdf0352: Read the Save start and free-slot checks in menu.rs and newsave.rs and the recorded PR testing and comments. The rest of the changed code, repository rules, and translations were not read in full in this re-check.; nothing run (a code review).

Checked and fine:

  • The full-slot path does not retain the Save as New title; it proceeds to the ordinary Save flow.

Testing: No commands that build or run the project were executed. The PR reports Windows hand testing; CI is still running.

Overlaps and merge order: #3218 and #3219 are described as related improvements; the PR states it stands alone.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Save as New still becomes an ordinary Save if the last free slot disappears before Save starts. The remaining save lifecycle and Linux runs are also outstanding. The system mod adds a save list, Save as New, up to 50 slots per quest, and configurable autosave retention. It expands save management but adds complexity to save selection and folder handling. **Blocking (1)**: must change before merging. 1. **L1** `game/mods/save-slots/src/menu.rs:535`: A Save as New request still falls through to an ordinary Save when no free slot remains at Save start. *When:* If the last free slot is taken between the System tab's X check and begin(), begin() proceeds to the ordinary list or confirm, which can overwrite an existing save. **Do:** Cancel or refuse the requested Save as New when begin() finds no free slot, rather than entering the ordinary Save path. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The remaining save lifecycle paths need an in-game run. *When:* X from the list, Master Quest, long autosave rotation and disabling the mod with extended saves have not been exercised in the reported final-design hand runs. **Do:** Run those paths in game and verify the selected and existing saves and quest folders. - **L5**: The new save and host paths have not been tested on Linux. *When:* Linux players use the same new save mapping and input hooks, and a profile moved between Windows and Linux has not been checked. **Do:** Build and exercise saving, loading, rotation, and a transferred save folder on Linux. `@fix` can do L1. **Since the last review** (on 711ee7d00c90) Still open: L1 (A Save as New request still falls through to an ordinary Save when no free slot remains at…); L4 (The remaining save lifecycle paths need an in-game run.); L5 (The new save and host paths have not been tested on Linux.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: recorded Windows runs demonstrate several save and list paths, but X from the list, Master Quest, extended rotation, disabling the mod with extended saves, and Linux remain untested in game. **Other systems:** The change affects both quests, existing and extended save folders, the host input and thread interfaces, and layout resources. Windows has recorded play results; Linux and cross-platform save movement remain untested. **Switches:** Autosaves to keep is added as a Gameplay setting, default 6, range 1–40, taking effect after restart. The recorded runs do not yet establish its behavior through a long rotation. **Reviewed:** f809fcd6f98f against 302cdf0352b7: Read the Save start and free-slot checks in menu.rs and newsave.rs and the recorded PR testing and comments. The rest of the changed code, repository rules, and translations were not read in full in this re-check.; nothing run (a code review). **Checked and fine:** - The full-slot path does not retain the Save as New title; it proceeds to the ordinary Save flow. **Testing:** No commands that build or run the project were executed. The PR reports Windows hand testing; CI is still running. **Overlaps and merge order:** #3218 and #3219 are described as related improvements; the PR states it stands alone. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/save-slots-sysmod 2026-12-05 19:41:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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!3205
No description provided.