mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +10:00
chore: Remove static target_dir from main.rs
This commit is contained in:
@@ -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 droplet_rs::manifest::generate_manifest_rusty;
|
||||||
use serde_json::json;
|
|
||||||
use tokio::runtime::Handle;
|
use tokio::runtime::Handle;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
pub async fn main() {
|
pub async fn main() {
|
||||||
let target_dir =
|
let mut args = env::args();
|
||||||
PathBuf::from("/home/decduck/.local/share/Steam/steamapps/common/BloonsTD6");
|
let target_dir = PathBuf::from(args.nth(1).expect("Provide target directory"));
|
||||||
|
|
||||||
let metrics = Handle::current().metrics();
|
let metrics = Handle::current().metrics();
|
||||||
println!("using {} workers", metrics.num_workers());
|
println!("using {} workers", metrics.num_workers());
|
||||||
|
|
||||||
let manifest = generate_manifest_rusty(
|
let manifest = generate_manifest_rusty(
|
||||||
&target_dir,
|
&target_dir,
|
||||||
|progress| println!("PROGRESS: {}", progress),
|
|progress| println!("PROGRESS: {}", progress),
|
||||||
|
|||||||
Reference in New Issue
Block a user