Skip to content

run: let victory.toml pick the console - #441

Closed
arminkhaleghirod wants to merge 1 commit into
Marvisak:mainfrom
arminkhaleghirod:config-console
Closed

arminkhaleghirod wants to merge 1 commit into
Marvisak:mainfrom
arminkhaleghirod:config-console

Conversation

@arminkhaleghirod

Copy link
Copy Markdown

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.

Adds [run].console and VICTORY_CONSOLE so low-memory machines can default
to Series S without passing --console every time. The flag still wins.

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

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).

mercuryVM added a commit to mercuryVM/VIctory that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Owner

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

@arminkhaleghirod arminkhaleghirod closed this by deleting the head repository Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants