diff --git a/Cargo.toml b/Cargo.toml index 3aa82a7..f53959b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anime-launcher-sdk" -version = "1.4.5" +version = "1.4.6" authors = ["Nikita Podvirnyy "] license = "GPL-3.0" readme = "README.md" @@ -8,7 +8,7 @@ edition = "2021" [dependencies.anime-game-core] git = "https://github.com/an-anime-team/anime-game-core" -tag = "1.10.3" +tag = "1.10.4" features = ["all"] # path = "../anime-game-core" # ! for dev purposes only diff --git a/src/games/star_rail/states.rs b/src/games/star_rail/states.rs index 78c40be..a1e785c 100644 --- a/src/games/star_rail/states.rs +++ b/src/games/star_rail/states.rs @@ -71,7 +71,7 @@ impl LauncherState { // Check game patch status (params.status_updater)(StateUpdating::Patch); - let patch = Patch::new(¶ms.patch_folder); + let patch = Patch::new(¶ms.patch_folder, params.game_edition); // Sync local patch folder with remote if needed // TODO: maybe I shouldn't do it here? @@ -84,7 +84,7 @@ impl LauncherState { } // Check the main patch - let main_patch = patch.main_patch(params.game_edition)?; + let main_patch = patch.main_patch()?; if !main_patch.is_applied(¶ms.game_path)? { return Ok(Self::MainPatchAvailable(main_patch));