mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
improve progress prints
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user