check first dir when matching files to download

This commit is contained in:
mxve 2023-09-10 12:38:21 +02:00
parent a76efc6e6f
commit a7008ecbd5

View File

@ -177,8 +177,9 @@ fn update(game: &Game, dir: &Path) {
))
.unwrap();
let engine_str = format!("{}/", game.engine);
for file in cdn_info {
if !file.name.starts_with(game.engine) || file.name == "iw4/iw4x.dll" {
if !file.name.starts_with(&engine_str) || file.name == "iw4/iw4x.dll" {
continue;
}