chore: Remove static target_dir from main.rs

This commit is contained in:
quexeky
2026-01-22 07:35:23 +11:00
parent f17a585b56
commit b32ad386f4

View File

@@ -1,15 +1,16 @@
use std::{os::unix::fs::MetadataExt, path::PathBuf};
use std::{env, os::unix::fs::MetadataExt, path::PathBuf};
use droplet_rs::manifest::generate_manifest_rusty;
use serde_json::json;
use tokio::runtime::Handle;
#[tokio::main]
pub async fn main() {
let target_dir =
PathBuf::from("/home/decduck/.local/share/Steam/steamapps/common/BloonsTD6");
let mut args = env::args();
let target_dir = PathBuf::from(args.nth(1).expect("Provide target directory"));
let metrics = Handle::current().metrics();
println!("using {} workers", metrics.num_workers());
let manifest = generate_manifest_rusty(
&target_dir,
|progress| println!("PROGRESS: {}", progress),