diff --git a/pkgs/anime-game-launcher/unwrapped.nix b/pkgs/anime-game-launcher/unwrapped.nix index fbdffff..0fd7569 100644 --- a/pkgs/anime-game-launcher/unwrapped.nix +++ b/pkgs/anime-game-launcher/unwrapped.nix @@ -33,6 +33,10 @@ with lib; cp ${customIcon} assets/images/icon.png ''; + patches = [ + ./wishes-fix.patch + ]; + cargoLock = { lockFile = "${src}/Cargo.lock"; outputHashes = { diff --git a/pkgs/anime-game-launcher/wishes-fix.patch b/pkgs/anime-game-launcher/wishes-fix.patch new file mode 100644 index 0000000..5ee2349 --- /dev/null +++ b/pkgs/anime-game-launcher/wishes-fix.patch @@ -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(); +