mirror of
https://github.com/alterware/alterware-launcher.git
synced 2026-12-03 12:18:39 +00:00
check first dir when matching files to download
This commit is contained in:
1 parent
a76efc6e6f
commit
a7008ecbd5
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user