Fixed game files repairing
This commit is contained in:
parent
2544e1ab6c
commit
d92674ca77
3 changed files with 5 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -31,7 +31,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anime-game-core"
|
name = "anime-game-core"
|
||||||
version = "1.1.7"
|
version = "1.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9f75c327e4487645dae9853da501f082408ff1c8
|
Subproject commit 6230dbf8ca26e3cd34cbe32468df18c823e89158
|
|
@ -773,7 +773,7 @@ impl App {
|
||||||
|
|
||||||
fn should_ignore(path: &PathBuf) -> bool {
|
fn should_ignore(path: &PathBuf) -> bool {
|
||||||
for part in ["UnityPlayer.dll", "xlua.dll", "crashreport.exe", "upload_crash.exe", "vulkan-1.dll"] {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -783,6 +783,8 @@ impl App {
|
||||||
|
|
||||||
for (i, file) in broken.into_iter().enumerate() {
|
for (i, file) in broken.into_iter().enumerate() {
|
||||||
if !is_patch_applied || !should_ignore(&file.path) {
|
if !is_patch_applied || !should_ignore(&file.path) {
|
||||||
|
println!("Repairing: {:?}", &file.path);
|
||||||
|
|
||||||
if let Err(err) = file.repair(&config.game.path) {
|
if let Err(err) = file.repair(&config.game.path) {
|
||||||
let err: Error = err.into();
|
let err: Error = err.into();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue