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);
|
||||
}
|
||||
|
||||
if dir.join(".sha-sums").exists() {
|
||||
match fs::remove_file(dir.join(".sha-sums")) {
|
||||
let old_files = [".sha-sums", ".iw4xrevision"];
|
||||
for f in old_files {
|
||||
if dir.join(f).exists() {
|
||||
match fs::remove_file(dir.join(f)) {
|
||||
Ok(_) => {}
|
||||
Err(error) => {
|
||||
crate::println_error!("Error removing .sha-sums: {error}");
|
||||
crate::println_error!("Error removing {f}: {error}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user