How fxceless/victory-fork works
VIctory is a Windows compatibility layer that runs a user-supplied Xbox Series title in-process. The principal workflow loads the title and its executable images, provides console runtime services, decodes game data, translates console GPU shaders to DXIL, and executes/presents graphics through host D3D12. The GPU node covers its resource, descriptor, submission, and frame machinery; the shader node covers the console ISA/IR and DXIL emission. Major documented capabilities include saves, input, audio, file streaming, and pipeline caching. Some subsystem links rely on README statements because implementation excerpts are incomplete.
Main entry points: host.rs D3D12 backend · xgameruntime.rs Runtime API · windows.rs Title loader · dstorage.rs Files and streaming
Components 29
Title entry
- CLI and run
apps/victory/src/main.rs - Title loader
crates/victory-loader/src/windows.rs - PE images
crates/victory-pe/src/image.rs
Console services
- Runtime API
crates/victory-hle/src/modules/xgameruntime.rs - Async services
crates/victory-hle/src/modules/xasync.rs - Files and streaming
crates/victory-hle/src/modules/dstorage.rs - Saves
crates/victory-hle/src/modules/storage.rs
Data and shaders
- Game formats
crates/victory-formats/src/bcpack.rs - Audio decode
crates/victory-formats/src/xma.rs - Game data
crates/victory-game/src/sgd5.rs - Shader translation
crates/victory-shader/src/emit/lower.rs - GPU ISA and IR
crates/victory-shader/src/gfx10/mod.rs - Shader IR
crates/victory-shader/src/ir.rs - Shader resources
crates/victory-shader/src/resource.rs
GPU execution
- D3D12 backend
crates/victory-gpu/src/host.rs - GPU resources
crates/victory-gpu/src/resource.rs - GPU descriptors
crates/victory-gpu/src/descriptor/host.rs - GPU pipelines
crates/victory-gpu/src/pipeline.rs - Frame submission
crates/victory-gpu/src/frame.rs - Copy tracking
crates/victory-gpu/src/copystat.rs - Write watching
crates/victory-gpu/src/watch.rs - Buffer shadows
crates/victory-gpu/src/shadow.rs - GPU objects
crates/victory-gpu/src/object.rs - GPU queue
crates/victory-gpu/src/queue.rs - Command lists
crates/victory-gpu/src/list.rs - GPU textures
crates/victory-gpu/src/texture.rs - Pipeline cache
crates/victory-pipeline/src/cache.rs
Other components
- Title owner
- Windows D3D12
Connections 28
- Title owner → CLI and run: supplies files
- CLI and run → Title loader: starts title
- Title loader → PE images: loads images
- Title loader → Runtime API: provides services
- Runtime API → Async services: uses async APIs
crates/victory-hle/src/modules/xgameruntime.rs - Runtime API → Files and streaming: provides streaming
crates/victory-hle/src/modules/dstorage.rs - Runtime API → Saves: provides saves
crates/victory-hle/src/modules/xgameruntime.rs - Files and streaming → Game formats: decodes BCPack
crates/victory-hle/src/modules/dstorage.rs - Files and streaming → Game data: reads game data
- Runtime API → Audio decode: provides audio
- Title loader → D3D12 backend: dispatches graphics
- D3D12 backend → Shader translation: translates shaders
- GPU ISA and IR → Shader IR: decodes into
crates/victory-shader/src/ir.rs - Shader translation → Shader IR: emits from
crates/victory-shader/src/emit/lower.rs - Shader translation → Shader resources: tracks resources
crates/victory-shader/src/emit/lower.rs - D3D12 backend → GPU resources: manages resources
crates/victory-gpu/src/host.rs - D3D12 backend → GPU descriptors: configures heaps
crates/victory-gpu/src/host.rs - D3D12 backend → GPU pipelines: creates pipelines
crates/victory-gpu/src/host.rs - D3D12 backend → Frame submission: submits frames
crates/victory-gpu/src/host.rs - D3D12 backend → Copy tracking: tracks copies
crates/victory-gpu/src/host.rs - D3D12 backend → Write watching: tracks writes
crates/victory-gpu/src/host.rs - D3D12 backend → Buffer shadows: uses buffer shadows
crates/victory-gpu/src/host.rs - D3D12 backend → GPU objects: creates objects
crates/victory-gpu/src/host.rs - D3D12 backend → GPU queue: submits work
crates/victory-gpu/src/host.rs - D3D12 backend → Command lists: records commands
crates/victory-gpu/src/host.rs - D3D12 backend → GPU textures: handles textures
crates/victory-gpu/src/host.rs - GPU pipelines → Pipeline cache: caches pipelines
- D3D12 backend → Windows D3D12: executes on