Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions apps/victory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ memchr.workspace = true
clap.workspace = true
walkdir.workspace = true

# The double-click menu: the console, the clipboard, the Windows build, the
# GPU's name and features.
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = [
"Win32_System_Console",
"Win32_System_DataExchange",
"Win32_System_Memory",
"Win32_System_Registry",
] }
windows = { workspace = true, features = [
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi",
] }

[dev-dependencies]
tempfile.workspace = true
toml.workspace = true

[features]
# Debug-level logs and the debugging switches (frame capture, stack dumps,
# the host debug layer, scripted keys). Off in a plain release build.
Expand Down
6 changes: 6 additions & 0 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 Down Expand Up @@ -128,6 +129,11 @@ fn main() -> Result<()> {
if victory_hle::modules::audio::capture::child() {
return Ok(());
}
// Opened from Explorer (no arguments, a console of its own): a menu
// instead of the help in a window that closes at once.
if menu::wanted() {
return menu::run();
}
let cli = Cli::parse();
match cli.command {
Command::Inspect {
Expand Down
Loading