mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
check first dir when matching files to download
This commit is contained in:
@@ -177,8 +177,9 @@ fn update(game: &Game, dir: &Path) {
|
|||||||
))
|
))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
let engine_str = format!("{}/", game.engine);
|
||||||
for file in cdn_info {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user