From f62d48eb6392d64c6b6a082025c35a36a0fec3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B0=D1=84=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=90=D0=B9?= =?UTF-8?q?=D1=80=D0=B0=D1=82?= Date: Sun, 13 Oct 2024 22:28:56 +0500 Subject: [PATCH 1/4] Background image update fix --- src/background.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/background.rs b/src/background.rs index ab5525d..fa2131d 100644 --- a/src/background.rs +++ b/src/background.rs @@ -65,6 +65,7 @@ pub fn download_background() -> anyhow::Result<()> { let info = get_background_info()?; let mut download_image = true; + let mut replace_cached_image = false; if crate::BACKGROUND_FILE.exists() { let hash = Md5::digest(std::fs::read(crate::BACKGROUND_FILE.as_path())?); @@ -84,6 +85,8 @@ pub fn download_background() -> anyhow::Result<()> { if let Err(err) = downloader.download(crate::BACKGROUND_FILE.as_path(), |_, _| {}) { anyhow::bail!(err); } + + replace_cached_image = true; } // Workaround for GTK weakness @@ -98,7 +101,7 @@ pub fn download_background() -> anyhow::Result<()> { // If it failed to re-code the file - just copy it // Will happen with HSR because devs apparently named // their background image ".webp" while it's JPEG - if !crate::PROCESSED_BACKGROUND_FILE.exists() { + if replace_cached_image || !crate::PROCESSED_BACKGROUND_FILE.exists() { std::fs::copy(crate::BACKGROUND_FILE.as_path(), crate::PROCESSED_BACKGROUND_FILE.as_path())?; } } From 72828f9781885a89fc73a9161a78854b26613716 Mon Sep 17 00:00:00 2001 From: My1 <6696524+My1@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:24:28 +0200 Subject: [PATCH 2/4] Fix warp finder Railway seems to still use v2. --- src/ui/main/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/main/mod.rs b/src/ui/main/mod.rs index bad0d3a..4935a5e 100644 --- a/src/ui/main/mod.rs +++ b/src/ui/main/mod.rs @@ -849,7 +849,7 @@ impl SimpleComponent for App { let web_cache = String::from_utf8_lossy(&web_cache); // https://webstatic-sea.[ho-yo-ver-se].com/[ge-nsh-in]/event/e20190909gacha-v2/index.html?...... - if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v3/index.html")) { + if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v2/index.html")) { let url_begin_pos = url.find("https://").unwrap(); let url_end_pos = url_begin_pos + url[url_begin_pos..].find("\0\0\0\0").unwrap(); From a0f6cc8cc84f06138b485a2901fce11740436a70 Mon Sep 17 00:00:00 2001 From: Nikita Podvirnyi Date: Thu, 5 Dec 2024 16:11:06 +0200 Subject: [PATCH 3/4] build: updated SDK version --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 80eb384..d513dcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -57,8 +57,8 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "anime-game-core" -version = "1.25.1" -source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.25.1#1e95d2cc4c609e4680550c4d2211f1e03f56a683" +version = "1.27.0" +source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.27.0#e635b754b13cec02b775ee86c887830e0ab92ca0" dependencies = [ "anyhow", "bzip2", @@ -82,8 +82,8 @@ dependencies = [ [[package]] name = "anime-launcher-sdk" -version = "1.22.0" -source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.22.0#5863addeda421b14892947397ec3d94b44b81f26" +version = "1.25.0" +source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.25.0#2f0d06e551ce2aef9ab7c5bbad827120173b12a8" dependencies = [ "anime-game-core", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 0c8298f..bfece3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ glib-build-tools = "0.20" [dependencies.anime-launcher-sdk] git = "https://github.com/an-anime-team/anime-launcher-sdk" -tag = "1.22.0" +tag = "1.25.0" features = ["all", "star-rail", "star-rail-patch"] # path = "../anime-launcher-sdk" # ! for dev purposes only From 2e3f3f9f099cd50fd375a0acb2d864965abcdee1 Mon Sep 17 00:00:00 2001 From: Nikita Podvirnyi Date: Thu, 5 Dec 2024 16:15:20 +0200 Subject: [PATCH 4/4] feat: updated changelog --- CHANGELOG.md | 6 ++++++ src/ui/about.rs | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44c7190..0c4aa25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- (supposedly) fixed background picture updating +- (supposedly) fixed wishes URL parsing +- Fixed game version parsing on updated game files layout + ## [1.9.0] - 09.10.2024 ### Removed diff --git a/src/ui/about.rs b/src/ui/about.rs index e2873ca..357582f 100644 --- a/src/ui/about.rs +++ b/src/ui/about.rs @@ -100,10 +100,12 @@ impl SimpleComponent for AboutDialog { set_release_notes_version: &APP_VERSION, set_release_notes: &[ - "

Removed

", + "

Fixed

", "
    ", - "
  • Removed Discord RPC support
  • ", + "
  • (supposedly) fixed background picture updating
  • ", + "
  • (supposedly) fixed wishes URL parsing
  • ", + "
  • Fixed game version parsing on updated game files layout
  • ", "
" ].join("\n"),