Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaturtlesandwich committed Apr 8, 2024
0 parents commit a999c50
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
Cargo.lock
16 changes: 16 additions & 0 deletions Cargo.toml
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
26 changes: 26 additions & 0 deletions src/main.rs
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(),
}
});
}

0 comments on commit a999c50

Please sign in to comment.