Skip to content

Commit

Permalink
anime-game-launcher: fix wish url
Browse files Browse the repository at this point in the history
  • Loading branch information
ezKEa committed Mar 13, 2024
1 parent ee227b7 commit c0943e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/anime-game-launcher/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ with lib;
cp ${customIcon} assets/images/icon.png
'';

patches = [
./wishes-fix.patch
];

cargoLock = {
lockFile = "${src}/Cargo.lock";
outputHashes = {
Expand Down
13 changes: 13 additions & 0 deletions pkgs/anime-game-launcher/wishes-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/ui/main/mod.rs b/src/ui/main/mod.rs
index bfdab28..11393e5 100644
--- a/src/ui/main/mod.rs
+++ b/src/ui/main/mod.rs
@@ -763,7 +763,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-v2/index.html")) {
+ if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v3/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();

0 comments on commit c0943e6

Please sign in to comment.