run: let victory.toml pick the console #441

Closed
arminkhaleghirod wants to merge 1 commit from upstream-pr/441 into main
arminkhaleghirod commented 2026-11-24 03:27:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arminkhaleghirod on 2026-11-24T03:27:38Z.


Adds a console option under [run] in victory.toml, plus VICTORY_CONSOLE, so people with less RAM/VRAM can default to Series S instead of passing --console series-s every run. --console still overrides it. Default stays Series X.

Helps with #203 but doesn't close it: Series S still needs #211 for the menus, and the world still uses a lot of memory.

Tested with cargo test --workspace on Windows 11. Couldn't test in-game.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6573942848 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/441). Originally posted by [arminkhaleghirod](https://github.com/arminkhaleghirod) on 2026-11-24T03:27:38Z. --- Adds a `console` option under `[run]` in victory.toml, plus `VICTORY_CONSOLE`, so people with less RAM/VRAM can default to Series S instead of passing `--console series-s` every run. `--console` still overrides it. Default stays Series X. Helps with #203 but doesn't close it: Series S still needs #211 for the menus, and the world still uses a lot of memory. Tested with `cargo test --workspace` on Windows 11. Couldn't test in-game.
mercuryVM commented 2026-11-24 06:53:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:10:38Z.

Review: APPROVED


Tested 157e0ce on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (265 passed, 0 failed). Not tested in game.

  • Precedence is --console > VICTORY_CONSOLE > [run].console > Series X. console_model and the config tests cover each step. #[serde(deny_unknown_fields)] stays on FileRun, so a typo under [run] is still an error.
  • Nit: Config::load is shared by every subcommand, so an invalid VICTORY_CONSOLE (for example one-x) now makes victory translate or victory config fail too, not only run. The error message is clear. Still, parsing the variable only where run uses it, or warning and falling back, would keep the other commands working.
  • Nit: there are now two Console enums, the clap one in main.rs and victory_core::config::Console. A ValueEnum derive on the core one would remove the mapping.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6034512955 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/441#pullrequestreview-6034512955). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T06:10:38Z. **Review:** APPROVED --- Tested 157e0ce on Windows 11, RTX 5070, MSVC: `cargo test --workspace --no-fail-fast` passes (265 passed, 0 failed). Not tested in game. - Precedence is `--console` > `VICTORY_CONSOLE` > `[run].console` > Series X. `console_model` and the config tests cover each step. `#[serde(deny_unknown_fields)]` stays on `FileRun`, so a typo under `[run]` is still an error. - Nit: `Config::load` is shared by every subcommand, so an invalid `VICTORY_CONSOLE` (for example `one-x`) now makes `victory translate` or `victory config` fail too, not only `run`. The error message is clear. Still, parsing the variable only where `run` uses it, or warning and falling back, would keep the other commands working. - Nit: there are now two `Console` enums, the clap one in `main.rs` and `victory_core::config::Console`. A `ValueEnum` derive on the core one would remove the mapping. AI-assisted (Claude Code).
mercuryVM commented 2026-11-24 06:56:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:10:47Z.


Correction to the count in my review: the run at 157e0ce was 269 passed, 0 failed (not 265). The verdict is unchanged.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123666362 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/441#issuecomment-7123666362). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T06:10:47Z. --- Correction to the count in my review: the run at 157e0ce was 269 passed, 0 failed (not 265). The verdict is unchanged. AI-assisted (Claude Code).
Marvisak commented 2026-11-25 01:07:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:18:21Z.


Automated triage for the maintainers.

Needs rebase. This PR does not merge cleanly into current main (ac2525d). Conflicting files: apps/victory/src/main.rs, apps/victory/src/run.rs, crates/victory-core/src/config.rs.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148370111 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/441#issuecomment-7148370111). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:18:21Z. --- <!-- victory-triage v1 head=157e0ceea175558534dcb6cf0051b2148b9a46d1 verdict=needs-rebase at=2026-11-25T00:13:20Z --> Automated triage for the maintainers. **Needs rebase.** This PR does not merge cleanly into current `main` (ac2525d). Conflicting files: `apps/victory/src/main.rs`, `apps/victory/src/run.rs`, `crates/victory-core/src/config.rs`. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync closed this pull request 2026-11-26 06:02:20 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!441
No description provided.