From d92674ca773970707d179511f4fbd89305a1d420 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Thu, 29 Sep 2022 19:55:20 +0200 Subject: [PATCH] Fixed game files repairing --- Cargo.lock | 2 +- anime-game-core | 2 +- src/ui/main.rs | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a14b117..117a3d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,7 +31,7 @@ dependencies = [ [[package]] name = "anime-game-core" -version = "1.1.7" +version = "1.1.8" dependencies = [ "anyhow", "bzip2", diff --git a/anime-game-core b/anime-game-core index 9f75c32..6230dbf 160000 --- a/anime-game-core +++ b/anime-game-core @@ -1 +1 @@ -Subproject commit 9f75c327e4487645dae9853da501f082408ff1c8 +Subproject commit 6230dbf8ca26e3cd34cbe32468df18c823e89158 diff --git a/src/ui/main.rs b/src/ui/main.rs index 5d7b76f..5a71978 100644 --- a/src/ui/main.rs +++ b/src/ui/main.rs @@ -773,7 +773,7 @@ impl App { fn should_ignore(path: &PathBuf) -> bool { for part in ["UnityPlayer.dll", "xlua.dll", "crashreport.exe", "upload_crash.exe", "vulkan-1.dll"] { - if path.to_string_lossy().contains(part) { + if path.ends_with(part) { return true; } } @@ -783,6 +783,8 @@ impl App { for (i, file) in broken.into_iter().enumerate() { if !is_patch_applied || !should_ignore(&file.path) { + println!("Repairing: {:?}", &file.path); + if let Err(err) = file.repair(&config.game.path) { let err: Error = err.into();