1.5.2
- implemented new core library for PGR
This commit is contained in:
parent
583810259b
commit
2b360bafed
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anime-launcher-sdk"
|
||||
version = "1.5.1"
|
||||
version = "1.5.2"
|
||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||
license = "GPL-3.0"
|
||||
readme = "README.md"
|
||||
|
@ -9,7 +9,7 @@ edition = "2021"
|
|||
|
||||
[dependencies.anime-game-core]
|
||||
git = "https://github.com/an-anime-team/anime-game-core"
|
||||
tag = "1.11.1"
|
||||
tag = "1.11.2"
|
||||
features = ["all"]
|
||||
|
||||
# path = "../anime-game-core" # ! for dev purposes only
|
||||
|
|
|
@ -32,6 +32,7 @@ pub enum StateUpdating {
|
|||
pub struct LauncherStateParams<F: Fn(StateUpdating)> {
|
||||
pub wine_prefix: PathBuf,
|
||||
pub game_path: PathBuf,
|
||||
pub fast_verify: bool,
|
||||
pub status_updater: F
|
||||
}
|
||||
|
||||
|
@ -47,7 +48,8 @@ impl LauncherState {
|
|||
// Check game installation status
|
||||
(params.status_updater)(StateUpdating::Game);
|
||||
|
||||
let game = Game::new(¶ms.game_path, ());
|
||||
let game = Game::new(¶ms.game_path, ())
|
||||
.with_fast_verify(params.fast_verify);
|
||||
|
||||
let diff = game.try_get_diff()?;
|
||||
|
||||
|
@ -76,6 +78,7 @@ impl LauncherState {
|
|||
Self::get(LauncherStateParams {
|
||||
wine_prefix: config.get_wine_prefix_path(),
|
||||
game_path: config.game.path,
|
||||
fast_verify: config.launcher.repairer.fast,
|
||||
|
||||
status_updater
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue