From 3e65975227baa511f570e8223fccda5607cf905e Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 23 Apr 2023 21:47:37 +0200 Subject: added config argument, remove devdir --- src/files.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index ecf9b52..0b5bc3f 100644 --- a/src/files.rs +++ b/src/files.rs @@ -11,12 +11,12 @@ use crate::{ db::{mods_get_info, userlist_add_disabled_versions}, error::{ErrorType, MLError, MLE}, modrinth::Version, - List, cache::{get_cached_versions, copy_cached_version}, devdir, + List, cache::{get_cached_versions, copy_cached_version}, }; pub async fn download_versions(list: List, config: Cfg, versions: Vec) -> MLE { - let mut cached = get_cached_versions(&devdir(&config.cache)); + let mut cached = get_cached_versions(&config.cache); println!("{:#?}", cached); @@ -59,7 +59,7 @@ pub async fn download_versions(list: List, config: Cfg, versions: Vec) //Force flush of stdout, else print! doesn't print instantly std::io::stdout().flush().unwrap(); let dl_path_file = format!("{}/{}", list.download_folder, filename); - let cache_path = format!("{}/{}", devdir(&config.clone().cache), filename); + let cache_path = format!("{}/{}", &config.clone().cache, filename); // println!("{}:{}", dl_path_file, cache_path); copy(dl_path_file, cache_path)?; println!(" ✓"); -- cgit v1.2.3