mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
keep .iw4xrevision
used by iw4x to determine if update is available
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user