diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/anime-launcher-sdk.iml b/.idea/anime-launcher-sdk.iml deleted file mode 100644 index cf84ae4..0000000 --- a/.idea/anime-launcher-sdk.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index c78ffc7..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 59e4577..258b3df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anime-launcher-sdk" -version = "1.13.4" +version = "1.14.0" authors = ["Nikita Podvirnyi "] 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.18.4" +tag = "1.19.0" features = ["all"] # path = "../anime-game-core" # ! for dev purposes only diff --git a/shell.nix b/shell.nix index f4ffed5..93763a3 100644 --- a/shell.nix +++ b/shell.nix @@ -1,8 +1,8 @@ let nixpkgs = builtins.fetchGit { - name = "nixos-23.11"; + name = "nixos-24.05"; url = "https://github.com/nixos/nixpkgs"; - ref = "refs/heads/nixos-23.11"; + ref = "refs/heads/nixos-24.05"; }; nixpkgs-unstable = builtins.fetchGit { diff --git a/src/games/genshin/config/mod.rs b/src/games/genshin/config/mod.rs index 45c90c3..8b30983 100644 --- a/src/games/genshin/config/mod.rs +++ b/src/games/genshin/config/mod.rs @@ -42,7 +42,7 @@ impl ConfigExt for Config { #[inline] fn get() -> anyhow::Result { unsafe { - match &CONFIG { + match CONFIG.as_ref() { Some(config) => Ok(config.clone()), None => Self::get_raw() } diff --git a/src/games/star_rail/config/mod.rs b/src/games/star_rail/config/mod.rs index 5057ffd..df724dd 100644 --- a/src/games/star_rail/config/mod.rs +++ b/src/games/star_rail/config/mod.rs @@ -42,7 +42,7 @@ impl ConfigExt for Config { #[inline] fn get() -> anyhow::Result { unsafe { - match &CONFIG { + match CONFIG.as_ref() { Some(config) => Ok(config.clone()), None => Self::get_raw() }