check first dir when matching files to download
This commit is contained in:
parent
92663425ef
commit
3e1a266c3e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user