mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
delete .iw4xrevision
This commit is contained in:
@@ -324,11 +324,14 @@ async fn update(
|
|||||||
std::process::exit(0);
|
std::process::exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if dir.join(".sha-sums").exists() {
|
let old_files = [".sha-sums", ".iw4xrevision"];
|
||||||
match fs::remove_file(dir.join(".sha-sums")) {
|
for f in old_files {
|
||||||
|
if dir.join(f).exists() {
|
||||||
|
match fs::remove_file(dir.join(f)) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
crate::println_error!("Error removing .sha-sums: {error}");
|
crate::println_error!("Error removing {f}: {error}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user