0.5.17
- fixed hdif applying errors during base game updating (approved issue 1)
This commit is contained in:
parent
a36215db46
commit
5b4403956f
2 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "anime-launcher-sdk"
|
name = "anime-launcher-sdk"
|
||||||
version = "0.5.16"
|
version = "0.5.17"
|
||||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -8,7 +8,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies.anime-game-core]
|
[dependencies.anime-game-core]
|
||||||
git = "https://github.com/an-anime-team/anime-game-core"
|
git = "https://github.com/an-anime-team/anime-game-core"
|
||||||
tag = "1.6.1"
|
tag = "1.6.2"
|
||||||
features = ["genshin", "all"]
|
features = ["genshin", "all"]
|
||||||
|
|
||||||
# path = "../anime-game-core" # ! for dev purposes only
|
# path = "../anime-game-core" # ! for dev purposes only
|
||||||
|
|
|
@ -101,8 +101,8 @@ impl LauncherState {
|
||||||
let old_audio_folder_base = data_folder.join("StreamingAssets/Audio");
|
let old_audio_folder_base = data_folder.join("StreamingAssets/Audio");
|
||||||
let old_audio_folder = old_audio_folder_base.join("GeneratedSoundBanks/Windows");
|
let old_audio_folder = old_audio_folder_base.join("GeneratedSoundBanks/Windows");
|
||||||
|
|
||||||
// Migrate pre-3.6 voiceovers format to post-3.6 if the base game is updated
|
// Migrate pre-3.6 voiceovers format to post-3.6
|
||||||
if old_audio_folder.exists() && game.get_version()?.version == [3, 6, 0] {
|
if old_audio_folder.exists() {
|
||||||
return Ok(Self::FolderMigrationRequired {
|
return Ok(Self::FolderMigrationRequired {
|
||||||
from: old_audio_folder,
|
from: old_audio_folder,
|
||||||
to: data_folder.join("StreamingAssets/AudioAssets"),
|
to: data_folder.join("StreamingAssets/AudioAssets"),
|
||||||
|
@ -149,6 +149,7 @@ impl LauncherState {
|
||||||
let patch = Patch::new(¶ms.patch_folder);
|
let patch = Patch::new(¶ms.patch_folder);
|
||||||
|
|
||||||
// Sync local patch folder with remote if needed
|
// Sync local patch folder with remote if needed
|
||||||
|
// TODO: maybe I shouldn't do it here?
|
||||||
if patch.is_sync(¶ms.patch_servers)?.is_none() {
|
if patch.is_sync(¶ms.patch_servers)?.is_none() {
|
||||||
for server in ¶ms.patch_servers {
|
for server in ¶ms.patch_servers {
|
||||||
if patch.sync(server).is_ok() {
|
if patch.sync(server).is_ok() {
|
||||||
|
|
Loading…
Reference in a new issue