obtain iw4x.dll from iw4x/iw4x-client

This commit is contained in:
2023-08-29 21:53:47 +02:00
parent 9dc569e646
commit 64c63bf24f
6 changed files with 66 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
mod github;
mod global;
mod http;
mod iw4x;
mod misc;
mod self_update;
mod structs;
@@ -177,7 +178,7 @@ fn update(game: &Game, dir: &Path) {
.unwrap();
for file in cdn_info {
if !file.name.starts_with(game.engine) {
if !file.name.starts_with(game.engine) || file.name == "iw4/iw4x.dll" {
continue;
}
@@ -204,6 +205,10 @@ fn update(game: &Game, dir: &Path) {
http::download_file(&format!("{}/{}", MASTER, file.name), &file_path);
}
}
if game.engine == "iw4" {
iw4x::update(dir);
}
}
fn launch(file_path: &PathBuf) {