improve progress prints

This commit is contained in:
2023-09-11 13:05:18 +02:00
parent 813d0613c1
commit f23acb6788
4 changed files with 59 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ use crate::http;
use crate::misc;
use std::{fs, path::Path};
use colored::*;
pub fn local_revision(dir: &Path) -> u16 {
if let Ok(revision) = fs::read_to_string(dir.join(".iw4xrevision")) {
@@ -25,7 +26,7 @@ pub fn update(dir: &Path) {
return;
}
println!("Updating IW4x...");
println!("[{}] {}", "Downloading".bright_yellow(), dir.join("iw4x.dll").display());
http::download_file(
&format!(
"{}/download/iw4x.dll",