Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0ed6179
Implement Waves 1-5 across shader, GPU, formats, HLE, and loader
sahajiscoding Nov 24, 2026
90e7548
Merge pull request #1 from sahajiscoding/arena/961e7baa-victory
sahajiscoding Nov 24, 2026
50db939
Merge upstream Marvisak/VIctory main (ffe310e) into arena/d3857d4f-vi…
sahajiscoding Nov 24, 2026
7757af8
CI: emit compiler annotations for clippy/test verification
sahajiscoding Nov 24, 2026
b275cb5
Fix ConstRootView derive placement and test import in victory-shader
sahajiscoding Nov 24, 2026
51fbecf
Fix unsupported() helper call in lower.rs and HostShader fields in wa…
sahajiscoding Nov 24, 2026
33687b6
Fix clippy items_after_test_module in resource.rs and match_single_bi…
sahajiscoding Nov 24, 2026
4c8d43c
Fix victory-gpu clippy and visibility errors caught by Windows CI
sahajiscoding Nov 24, 2026
61a50a0
Fix remaining clippy lints in victory-gpu
sahajiscoding Nov 24, 2026
f39d7f9
Fix clippy lints in victory-hle modules
sahajiscoding Nov 24, 2026
7b32fbe
Fix unused_assignments clippy warning under diagnostics feature in ho…
sahajiscoding Nov 24, 2026
a734777
ci(temp): run tests with --no-fail-fast --test-threads=1 --nocapture …
sahajiscoding Nov 24, 2026
b0318f3
Fix gameinput blocking enumeration constant in test + per-crate test …
sahajiscoding Nov 24, 2026
99caf37
Fix xg.rs copy_args u32 overflow, resource.rs readfirstlane/const-pai…
sahajiscoding Nov 24, 2026
613279d
Wave 6: integer RTV blend fix, VirtualQuery fallback, dynamic slots, …
sahajiscoding Nov 24, 2026
7d039c6
Document remaining unsafe blocks for clippy
sahajiscoding Nov 24, 2026
da1c367
Fix disjoint unaligned offset in CopyTextureRegion test and restore u…
sahajiscoding Nov 24, 2026
88196f7
Wave 7: fix all remaining shader, GPU, HLE streaming, input, audio, s…
sahajiscoding Nov 24, 2026
4ac4da6
temp: emit CI diagnostics via annotations
sahajiscoding Nov 24, 2026
645b076
Fix clippy manual_range_patterns in lower.rs
sahajiscoding Nov 24, 2026
05d7ac8
Fix latest_gpu_write_shadow arg type and test desc fields in list.rs
sahajiscoding Nov 24, 2026
a1840c3
Fix GetCPUDescriptorHandleForHeapStart ABI and targets test in list.rs
sahajiscoding Nov 24, 2026
6ea8f3c
Use 2^24 x 4 instances per record in indirect budget saturation test
sahajiscoding Nov 24, 2026
2f65748
Read raw operand bits in v_cmp_class_f32 so abs/neg modifiers lower c…
sahajiscoding Nov 24, 2026
0381a58
Filter test failure annotations to failing tests and panic lines
sahajiscoding Nov 24, 2026
3b80bdc
Test distinct 1x5 and 1x3 heights across both hardware and WARP backends
sahajiscoding Nov 24, 2026
6a5e312
Extract exact cargo test failure block in temporary CI annotation
sahajiscoding Nov 24, 2026
e845ba2
Handle Windows inbox WARP GetDimensions quirk in waterfall size test …
sahajiscoding Nov 24, 2026
ab84090
victory-shader: detect software adapter via device.GetAdapterLuid
sahajiscoding Nov 24, 2026
59bd403
Wave 8A: GPU world stability, descriptor/shadow/texture perf, and cor…
sahajiscoding Nov 24, 2026
4e2c5e3
Fix Reserved struct type complexity and plain-text CI diagnostics
sahajiscoding Nov 24, 2026
e3c4e52
Fix test field names in ir.rs and StageIo import in emit/mod.rs
sahajiscoding Nov 24, 2026
a8400d0
Fix GetDeviceRemovedReason Result handling and gfx10::decode test call
sahajiscoding Nov 24, 2026
9b821cf
Fix 4 clippy lints in victory-gpu (as_chunks, safety comment, questio…
sahajiscoding Nov 24, 2026
e2cfe83
Wave 8B+8C: Windows launcher menu & PC readiness check, NTFS-safe cac…
sahajiscoding Nov 24, 2026
1e5dd21
Fix Desc.depth field name in texture extents test
sahajiscoding Nov 24, 2026
995b983
Join all threads in cache race test and restore upstream ci.yml
sahajiscoding Nov 24, 2026
d0611e5
Temp: surface exact failing test line in CI
sahajiscoding Nov 24, 2026
6f4ca1d
Temp: add set +e and /tmp/test.log for exact failure line
sahajiscoding Nov 24, 2026
be92214
Temp: print exact failures block from /tmp/test.log
sahajiscoding Nov 24, 2026
01df260
Fix image_store dmask test table SGPR setup, tighten #878 mask-join a…
sahajiscoding Nov 24, 2026
402a5a6
Temp: capture exact remaining test failure
sahajiscoding Nov 24, 2026
e96c532
Temp: probe why git ls-files returned target/ in xtask policy test
sahajiscoding Nov 24, 2026
adc6aa6
Restore upstream CI workflow verbatim
sahajiscoding Nov 24, 2026
ec6a070
Merge origin/main and restore .gitignore so target/ stays ignored for…
sahajiscoding Nov 24, 2026
03f6d27
Wave 9: full Windows playability, GPU selection, fullscreen, controls…
sahajiscoding Nov 24, 2026
ab22d7c
Fix NOOP_DEFERRAL dangling_mut + temporary CI annotation probe
sahajiscoding Nov 24, 2026
be2dc01
Restore .github/workflows/ci.yml to upstream ffe310e
sahajiscoding Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,78 @@
# ---------------------------------------------------------------------------
# RULE #1: nothing from the game (or any other proprietary source) is ever
# committed.
# Everything is built from files the user supplies at runtime.
# This file is the first line of defence; `cargo xtask policy` (also run by
# the pre-commit hook in .githooks/) is the second and is authoritative.
# See docs/asset-policy.md.
# ---------------------------------------------------------------------------

# Build output
/target/
/tests/fixtures/*/target/

# Local configuration (contains paths to YOUR files)
/victory.toml

# Places people tend to drop data into. Keep data outside the repo instead.
/game/
/games/
/assets/
/data/
/dump/
/dumps/
/extracted/
/cache/
/out/

# Executables, libraries, symbols
*.exe
*.dll
*.pdb
*.lib
*.sys
*.obj
*.exp
*.ilk

# Console packages and containers
*.xvd
*.xvc
*.msixvc
*.xsp
*.cab
*.msi

# Typical game data (non-exhaustive on purpose; the policy check is an allowlist)
*.bin
# The one exception (docs/asset-policy.md): the BCPack format's constant tables.
!/crates/victory-formats/src/bcpack-tables.bin
*.dat
*.pak
*.rpf
*.dds
*.ktx
*.ktx2
*.dxbc
*.dxil
*.cso
*.spv
*.wav
*.xma
*.ogg
*.opus
*.mp3
*.mp4
*.bik
*.bk2
*.awc
*.zip
*.7z
*.rar

# Editor / OS noise
.vs/
.idea/
*.swp
Thumbs.db
.DS_Store
45 changes: 34 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,49 @@ cargo test --workspace # needs no game data
cargo run -p victory -- config # check your paths
```

Run the title:
Run or package the title on Windows:

```powershell
# One-click portable Windows package (builds release victory.exe + launcher helper + runs doctor):
.\scripts\build-windows.ps1 -GameDir "D:\Path\To\Your\XboxTitle"

# Or build and run directly:
cargo build --release -p victory
target\release\victory.exe doctor # check GPU / SM 6.6 / Mesh Shaders
target\release\victory.exe # interactive Windows launcher menu
target\release\victory.exe run <game dir>\<the title's exe> --execute
```

The window caption shows the framerate. Saves, settings and `crashes.log`
are kept under the data folder (default `%LOCALAPPDATA%\victory\data`), derived
data under the cache folder.
You can double-click `victory.exe` to open the interactive PC readiness &
title launcher menu (press `S` to save your game folder to `victory.toml` and
`K` for the full controls guide), or drag-and-drop a title `.exe` directly onto
`victory.exe` in Windows Explorer.

On multi-GPU / hybrid laptops, VIctory automatically prefers the high-performance
discrete GPU (`DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE`). You can override the GPU
with `VICTORY_ADAPTER=<index or name substring>` (for example `VICTORY_ADAPTER=RTX`).

The window caption shows live FPS, frame time, and draw counts. Press **`F11`**
or **`Alt+Enter`** in-game to toggle borderless fullscreen. Saves, settings and
`crashes.log` are kept under the data folder (default `%LOCALAPPDATA%\victory\data`),
derived data under the cache folder.

Input: XInput pads. With none connected the keyboard is a pad while the
title's window has focus:
Input: XInput pads (up to 4 controllers, with Windows.Gaming.Input 4-motor
impulse trigger rumble). With no physical pad connected, Keyboard + Mouse acts
as a virtual gamepad while the title's window has focus:

| Keys | Pad |
|------|-----|
| Keys / Mouse | Pad |
|--------------|-----|
| W A S D / I J K L | left / right stick |
| Right Click + Mouse (or `F9` toggle) | mouse camera look (right stick) |
| arrows | D-pad |
| Enter, Backspace, X, Y | A, B, X, Y |
| Q / E, Z / C | shoulders, triggers |
| F / H | stick clicks |
| Enter or Space / Backspace or Left Ctrl | A / B |
| X or R / Y | X / Y |
| Q / E | LB / RB |
| Z or Right Click / C or Left Click | LT / RT |
| F or Left Shift / H or Middle Click | L3 / R3 |
| Esc, Tab | Menu, View |
| F11 / Alt+Enter | borderless fullscreen |

## Commands

Expand All @@ -96,6 +117,8 @@ victory translate [paths...] [--validate] [--pipelines] [--list] [--jobs N]
victory run <exe> [--execute] [--unimplemented trap|zero] [--strict]
[--console series-x|series-s] [-- <title arguments>]
victory config
victory doctor
victory # interactive Windows launcher menu
```

Logging: `VICTORY_LOG=victory_loader=trace,info` (a release build logs
Expand Down
25 changes: 22 additions & 3 deletions apps/victory/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

mod census;
mod inspect;
mod menu;
mod run;
mod shader;
mod translate;
Expand All @@ -22,7 +23,7 @@ use clap::{Parser, Subcommand, ValueEnum};
)]
struct Cli {
#[command(subcommand)]
command: Command,
command: Option<Command>,
}

#[derive(Subcommand)]
Expand Down Expand Up @@ -107,6 +108,8 @@ enum Command {
},
/// Show the resolved configuration and check it.
Config,
/// Check this Windows PC's DirectX 12 GPU, shader, and title readiness.
Doctor,
}

#[derive(Clone, Copy, ValueEnum)]
Expand All @@ -128,8 +131,23 @@ fn main() -> Result<()> {
if victory_hle::modules::audio::capture::child() {
return Ok(());
}
// Drag-and-drop a title `.exe` directly onto `victory.exe` in Windows Explorer.
let raw_args: Vec<std::ffi::OsString> = std::env::args_os().collect();
if raw_args.len() == 2 {
let candidate = PathBuf::from(&raw_args[1]);
if candidate.is_file()
&& candidate
.extension()
.is_some_and(|e| e.eq_ignore_ascii_case("exe"))
{
return run::run(&candidate, Unimplemented::Trap, false, true, Console::SeriesX);
}
}
let cli = Cli::parse();
match cli.command {
let Some(command) = cli.command else {
return menu::interactive();
};
match command {
Command::Inspect {
file,
imports,
Expand Down Expand Up @@ -162,10 +180,11 @@ fn main() -> Result<()> {
title_args: _,
} => run::run(&exe, unimplemented, strict, execute, console),
Command::Config => show_config(),
Command::Doctor => menu::doctor(),
}
}

fn show_config() -> Result<()> {
pub(crate) fn show_config() -> Result<()> {
let cfg = victory_core::Config::load()?;
let status = |p: &Option<PathBuf>| match p {
Some(p) if p.exists() => format!("{}", p.display()),
Expand Down
Loading