victory play: the program alone, beside the title, is all there is to start

Started with no command (a double click) or as `victory play [exe]`, the
program finds game_scarlett_master.exe beside itself and starts it with the
settings scripts\play-foxhound.ps1 gives it, built in (apps/victory/src/play.rs):
the same switch table, what the F1 menu saved over it, DLSS and frame
generation made ready where NVIDIA's files are, the frame rate cap, and
`--set NAME=VALUE` for anything else. Nothing is written beside the program
or into the title's folder: the menu's settings file, a log for every start
(play-<utc>-<pid>.log, the newest ten kept) and NVIDIA's files are under
%LOCALAPPDATA%\victory, where the caches and saves already are.

NVIDIA's DLSS and frame generation files stay NVIDIA's and are not part of
the program: a first start without them asks once whether to fetch them from
NVIDIA's GitHub, and `victory get-dlss` does it later (the fetcher script,
embedded, with a new -To).

victory-core logging: VICTORY_LOG_FILE adds a plain-text log file.

README: the quick start is the release's exe (download, put beside the
title, double click); building it yourself is kept below.

Checked on an RTX 5070: no title beside it (a clear error), a file of that
name (found, Streamline loaded), get-dlss (66.6 MB in 38 s, files identical
to the SDK's), two muted runs of the title from a folder of the program's own
(25-28 fps in the opening rooms, right picture, nothing written beside it),
and a start from the title's folder by the user.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Fable 5.2 committed 2026-11-26 21:28:35 -08:00
1 parent 1010e02314
commit 48ad7859fb
6 files changed
+604 -34

No files matched your search

+2 -2
View File
@@ -345,7 +345,7 @@ impl Menu {
/// Writes the changed values over those in the settings file.
fn save(&mut self) -> bool {
let Some(path) = std::env::var_os("VICTORY_MENU_FILE") else {
self.note = "NO SETTINGS FILE: START WITH PLAY-FOXHOUND.PS1".to_owned();
self.note = "NO SETTINGS FILE: START WITH VICTORY PLAY".to_owned();
return false;
};
let mut kept: Vec<(String, String)> = std::fs::read_to_string(&path)
@@ -361,7 +361,7 @@ impl Menu {
kept.retain(|(k, _)| k != item.var);
kept.push((item.var.to_owned(), self.values[i].clone()));
}
let mut text = String::from("# Saved by the F1 menu; scripts\\play-foxhound.ps1 applies these over its own settings (an empty value: unset).\r\n");
let mut text = String::from("# Saved by the F1 menu; applied over the play settings at every start (an empty value: unset).\r\n");
for (k, v) in &kept {
text.push_str(&format!("{k}={v}\r\n"));
}