-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a999c50
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/target | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "kettle" | ||
authors = ["spuds"] | ||
repository = "https://github.com/bananaturtlesandwich/stove" | ||
description = "a kismet hooker for cooked unreal engine blueprints" | ||
readme = "README.md" | ||
version = "1.0.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
unreal_asset = { git = "https://github.com/astrotechies/unrealmodding", rev = "84e60cc" } | ||
clap = { version = "4.5", features = ["derive"] } | ||
rfd = "0.14" | ||
|
||
[profile.dev.package."*"] | ||
opt-level = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use clap::Parser; | ||
|
||
#[derive(Parser)] | ||
#[command(about, long_about = None)] | ||
struct Cli { | ||
#[arg(short, long, value_name = "source")] | ||
src: std::path::PathBuf, | ||
#[arg(short, long, value_name = "destination")] | ||
dest: std::path::PathBuf, | ||
} | ||
|
||
fn main() { | ||
let Cli { src, dest } = Cli::try_parse().unwrap_or_else(|err| { | ||
match rfd::FileDialog::new() | ||
.set_title("select the source asset") | ||
.pick_file() | ||
.zip( | ||
rfd::FileDialog::new() | ||
.set_title("select the destination asset") | ||
.pick_file(), | ||
) { | ||
Some((src, dest)) => Cli { src, dest }, | ||
None => err.exit(), | ||
} | ||
}); | ||
} |