From 1f76f8529c911a103162cec78fdeab28fda07544 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:12:42 +0200 Subject: [PATCH] update iw4x if dll doesn't exist --- src/iw4x.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iw4x.rs b/src/iw4x.rs index ac14d2a..ff33554 100644 --- a/src/iw4x.rs +++ b/src/iw4x.rs @@ -18,6 +18,9 @@ pub fn remote_revision() -> u16 { } pub fn update_available(dir: &Path) -> bool { + if !dir.join("iw4x.dll").exists() { + return true; + } local_revision(dir) < remote_revision() }