ReVIctory page: Quick settings card and Developer mode (build from source) #239

Open
github-bot wants to merge 1 commit from github-bot/gh-239 into main AGit
Owner

@⁠ael-malt on GitHub · 2026-12-05 12:56 UTC · original
ael-malt:revictory-quick-settings-dev-mode → main · +926 −3 · 14 files · 1 commits · open

Two additions to the ReVIctory page.

1. Quick settings card

Since 2.2.7 the ReVIctory page only downloads and launches victory.exe. Every setting lives in ReVIctory's own settings window, so the most common choices aren't visible from the launcher. This adds a "2. Quick settings" card between Install and Play:

  • Console: Xbox Series X / Series S
  • Ray tracing: off / on
  • Frame cap: 30 / 40 / 60 / uncapped
  • Upscaler (FSR profile)
  • CPU threads: Auto / Low / Medium / High / Max
  • Fast settings, larger streaming limits, skip intro, borderless window

The card doesn't keep settings of its own. It reads and writes the same files ReVIctory's window uses: %LOCALAPPDATA%\revictory\launcher.txt, plus overlay.txt for FSR and the frame cap, which the in-game menu shares. Only these keys change; every other line is kept. A key that isn't in the file shows ReVIctory's own default, so the card and ReVIctory's window always agree, and Launch opens ReVIctory's window with these choices already set.

ReVIctory writes its choices back when it closes, so the card is disabled while the game runs and reloads afterwards.

This is a smaller alternative to the reverted "settings tabs" attempt (088bd32, reverted in 3cf5ce2): one card, no new tabs.

2. Developer mode (gear menu): build from source

Before 2.2.7 the launcher cloned and built ReVIctory, which is useful for anyone who wants to work on the code. Gear → "Developer mode: ON" shows a "Developer: build from source" card with:

  • Repository (defaults to ReTerryDavis/ReVIctory; a fork works too) and branch (empty = default branch).
  • Get / update source: the first time it's a full git clone into <runners folder>\sources\revictory-dev, so you can switch branches and commit. After that it runs git fetch and fast-forwards only a clean tree. Local edits and local commits are never discarded: unlike the runners' "Update Source", there is no reset --hard. If the tree has changes, it lists them and doesn't merge. Changing the URL in the box repoints origin.
  • Build: cargo build --release -p victory on the clone as it is, uncommitted edits included. It reuses RunnerService.BuildAsync, so Git, the C++ Build Tools and rustup are installed when missing, and the Agility SDK handling applies. The build always runs, even when the commit didn't change.
  • After a successful build, that exe is what Launch ReVIctory starts, and the status shows "developer build ". A built exe isn't next to the game, so if ReVIctory has no game set yet, the game in the Game Folder is written into launcher.txt (exe=). Install brings a release back.
  • Open folder opens the clone.

Testing (Windows 11, RX 6700 XT)

Driven with UI automation:

  • Quick settings: with no settings files the card shows ReVIctory's defaults. Changing the combo boxes and checkboxes writes the right keys. Switching pages and back reloads them. The card is locked while victory.exe runs.
  • Developer mode: the toggle shows and hides the card. Clone of ReTerryDavis/ReVIctory main works. A second update with a local edit kept the edit and didn't merge. Build took 4m26s on a clean clone, the status switched to the built exe, exe= was set, Launch started sources\revictory-dev\target\release\victory.exe, and Stop ended it.
  • Rebased onto main (1fff369, with the CNF page); builds, smoke-tested again.

The new strings are English only; the localizer files weren't touched.

🤖 Generated with Claude Code

**@⁠ael-malt** on GitHub · 2026-12-05 12:56 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/239) `ael-malt:revictory-quick-settings-dev-mode` → `main` · +926 −3 · 14 files · 1 commits · open Two additions to the ReVIctory page. ### 1. Quick settings card Since 2.2.7 the ReVIctory page only downloads and launches `victory.exe`. Every setting lives in ReVIctory's own settings window, so the most common choices aren't visible from the launcher. This adds a "2. Quick settings" card between Install and Play: - Console: Xbox Series X / Series S - Ray tracing: off / on - Frame cap: 30 / 40 / 60 / uncapped - Upscaler (FSR profile) - CPU threads: Auto / Low / Medium / High / Max - Fast settings, larger streaming limits, skip intro, borderless window The card doesn't keep settings of its own. It reads and writes the same files ReVIctory's window uses: `%LOCALAPPDATA%\revictory\launcher.txt`, plus `overlay.txt` for FSR and the frame cap, which the in-game menu shares. Only these keys change; every other line is kept. A key that isn't in the file shows ReVIctory's own default, so the card and ReVIctory's window always agree, and Launch opens ReVIctory's window with these choices already set. ReVIctory writes its choices back when it closes, so the card is disabled while the game runs and reloads afterwards. This is a smaller alternative to the reverted "settings tabs" attempt (088bd32, reverted in 3cf5ce2): one card, no new tabs. ### 2. Developer mode (gear menu): build from source Before 2.2.7 the launcher cloned and built ReVIctory, which is useful for anyone who wants to work on the code. Gear → "Developer mode: ON" shows a "Developer: build from source" card with: - **Repository** (defaults to ReTerryDavis/ReVIctory; a fork works too) and **branch** (empty = default branch). - **Get / update source:** the first time it's a full `git clone` into `<runners folder>\sources\revictory-dev`, so you can switch branches and commit. After that it runs `git fetch` and fast-forwards **only a clean tree**. Local edits and local commits are never discarded: unlike the runners' "Update Source", there is no `reset --hard`. If the tree has changes, it lists them and doesn't merge. Changing the URL in the box repoints `origin`. - **Build:** `cargo build --release -p victory` on the clone as it is, uncommitted edits included. It reuses `RunnerService.BuildAsync`, so Git, the C++ Build Tools and rustup are installed when missing, and the Agility SDK handling applies. The build always runs, even when the commit didn't change. - After a successful build, that exe is what **Launch ReVIctory** starts, and the status shows "developer build <commit>". A built exe isn't next to the game, so if ReVIctory has no game set yet, the game in the Game Folder is written into `launcher.txt` (`exe=`). **Install** brings a release back. - **Open folder** opens the clone. ### Testing (Windows 11, RX 6700 XT) Driven with UI automation: - **Quick settings:** with no settings files the card shows ReVIctory's defaults. Changing the combo boxes and checkboxes writes the right keys. Switching pages and back reloads them. The card is locked while `victory.exe` runs. - **Developer mode:** the toggle shows and hides the card. Clone of ReTerryDavis/ReVIctory main works. A second update with a local edit kept the edit and didn't merge. Build took 4m26s on a clean clone, the status switched to the built exe, `exe=` was set, Launch started `sources\revictory-dev\target\release\victory.exe`, and Stop ended it. - Rebased onto main (1fff369, with the CNF page); builds, smoke-tested again. The new strings are English only; the localizer files weren't touched. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Quick settings: console (Series X/S), ray tracing, frame cap, FSR upscaler,
CPU threads, fast settings, larger streaming limits, skip intro, borderless.
They are read from and written to the files ReVIctory's own settings window
keeps (%LOCALAPPDATA%\revictory\launcher.txt and overlay.txt). Only these keys
change, other lines are kept, and a missing key shows ReVIctory's default, so
the card and ReVIctory's window always agree. The card is locked while the game
runs (ReVIctory writes its choices back when it closes) and reloads afterwards.

Developer mode (gear menu): a card to clone the repository (or a fork, any
branch) and build victory.exe from it, to work on the code. The clone is a full
git clone in <runners>\sources\revictory-dev. Updating fetches and only
fast-forwards a clean tree, so local edits and commits are never discarded.
Build always runs cargo (edits included), reusing the runner build path
(installs Rust and the C++ tools when needed). The built exe becomes the one
Launch starts, and the game in the Game Folder is set in launcher.txt when
ReVIctory has none. Install brings back a release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 12:59:19 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-12-05 12:56 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-12-05 12:56 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/239#pullrequestreview-6203122377) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
github-bot force-pushed github-bot/gh-239 from a669070d60 to 473b94da76 2026-12-05 15:15:37 +00:00 Compare
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-12-05 15:09 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-12-05 15:09 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/239#pullrequestreview-6203821255) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
This pull request has changes conflicting with the target branch.
  • src/AmericasLauncher/Services/Localizer.Es.cs
  • src/AmericasLauncher/Services/Localizer.Fr.cs
  • src/AmericasLauncher/Services/Localizer.It.cs
  • src/AmericasLauncher/Services/Localizer.Pl.cs
  • src/AmericasLauncher/Services/Localizer.Pt.cs
  • src/AmericasLauncher/Services/Localizer.Ru.cs
  • src/AmericasLauncher/Services/Localizer.Tr.cs
  • src/AmericasLauncher/Services/Localizer.Zh.cs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/239/head:github-bot/gh-239'
git switch 'github-bot/gh-239'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-239'
git switch 'github-bot/gh-239'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-239'
git switch 'github-bot/gh-239'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-239'
git switch 'main'
git merge --squash 'github-bot/gh-239'
git switch 'main'
git merge --ff-only 'github-bot/gh-239'
git switch 'main'
git merge 'github-bot/gh-239'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.