keep .iw4xrevision

used by iw4x to determine if update is available
This commit is contained in:
2024-08-30 08:42:59 +02:00
parent 470bc50ad5
commit 757aad43a1
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ use crate::http_async;
use crate::misc;
use crate::structs;
use std::fs;
use std::path::Path;
pub async fn remote_revision() -> u16 {
@@ -36,4 +37,5 @@ pub async fn update(dir: &Path, cache: &mut structs::Cache) {
.unwrap();
cache.iw4x_revision = format!("r{remote}");
fs::write(dir.join(".iw4xrevision"), &cache.iw4x_revision).unwrap();
}

View File

@@ -324,7 +324,7 @@ async fn update(
std::process::exit(0);
}
let old_files = [".sha-sums", ".iw4xrevision"];
let old_files = [".sha-sums"];
for f in old_files {
if dir.join(f).exists() {
match fs::remove_file(dir.join(f)) {