summary refs log tree commit diff
path: root/d2launcher/d2launcher.patch
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2024-01-08 08:20:20 -0600
committerStarfall <us@starfall.systems>2024-01-08 08:25:52 -0600
commit05210905560668529d9861f176c5c00b78ac53cb (patch)
tree833709d879f1531205d61c795813435636e442a0 /d2launcher/d2launcher.patch
parentdb09bd234b0fe1b47b38d3466e518a2ab5254380 (diff)
d2launcher
Diffstat (limited to 'd2launcher/d2launcher.patch')
-rw-r--r--d2launcher/d2launcher.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/d2launcher/d2launcher.patch b/d2launcher/d2launcher.patch
new file mode 100644
index 0000000..b20672f
--- /dev/null
+++ b/d2launcher/d2launcher.patch
@@ -0,0 +1,40 @@
+From 8cb8a315398edd0121e4cf4f9820c5a1e777285a Mon Sep 17 00:00:00 2001
+From: Starfall <us@starfall.systems>
+Date: Mon, 8 Jan 2024 08:03:57 -0600
+Subject: [PATCH] patch to use Zaharel's d2stats fork
+
+---
+ d2launcher | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/d2launcher b/d2launcher
+index 01dabb1..28091dc 100755
+--- a/d2launcher
++++ b/d2launcher
+@@ -77,7 +77,7 @@ MXL_PATCH_VERSION="d2launcher-patch.version"
+ 
+ # Urls
+ wine_native_url="https://github.com/Kron4ek/Wine-Builds/releases/download/7.0-5-proton/wine-7.0-5-proton-amd64.tar.xz"
+-d2_stats_url="https://github.com/Kyromyr/D2Stats/releases/download/3.11.5/D2Stats-3.11.5.rar"
++d2_stats_url="https://github.com/Zahariel1942/D2Stats/releases/download/3.12.2/D2Stats_3.12.2.zip"
+ d2_sigma_loader_url="https://github.com/SyndromeDayna/diablo-2-median-xl-sigma-loader/releases/download/3/sigma-loader.exe"
+ 
+ # Wine
+@@ -669,10 +669,10 @@ check_d2stats_install() {
+             rm -f -r "$D2_STATS_BIN_DIR"
+             mkdir -p "$D2_STATS_BIN_DIR"
+             cd "$D2_STATS_BIN_DIR" || exit 1
+-            local rar_file=d2-stats.rar
+-            curl -Lk "$d2_stats_url" -o "$rar_file"
+-            unrar x "$rar_file"
+-            rm "$rar_file"
++            local zip_file=d2-stats.zip
++            curl -Lk "$d2_stats_url" -o "$zip_file"
++            7z x "$zip_file"
++            rm "$zip_file"
+         ) &
+         if ! zenity_progress $! "Downloading D2Stats"; then
+             rm -f -r "$D2_STATS_BIN_DIR"
+-- 
+2.43.0
+