mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-02-16 17:59:46 +03:00
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]]
|
||||
name = "anime-game-core"
|
||||
version = "1.1.7"
|
||||
version = "1.1.8"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bzip2",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9f75c327e4487645dae9853da501f082408ff1c8
|
||||
Subproject commit 6230dbf8ca26e3cd34cbe32468df18c823e89158
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue