Skip to content

Commit

Permalink
remove patched files
Browse files Browse the repository at this point in the history
  • Loading branch information
murkl committed Apr 7, 2024
1 parent 2b7401c commit eaaf3a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions d2launcher
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

SCRIPT_VERSION="4.0.1"
SCRIPT_VERSION="4.0.2"

# /////////////////////////////////////////////////////
# LOCATE SCRIPT WORKING DIR
Expand Down Expand Up @@ -97,7 +97,7 @@ d2_stats_tray="true"

# Gui
gui_width="450"
gui_height="350"
gui_height="380"
gui_font="monospace"
gui_color="#87270A"
gui_size="9"
Expand Down Expand Up @@ -512,6 +512,11 @@ show_gui_mxl_patches() {
echo -e "No patch file selected"
return 1
fi

# Remove patched files from d2 dir
mapfile -t patched_files < <(zipinfo -1 "${MXL_PATCHES_DIR}/$(<"$d2_dir/$MXL_PATCH_VERSION").zip")
for item in "${patched_files[@]}"; do rm -f "${d2_dir}/${item}"; done

(
# Patching Diablo II core data
unzip -o "$D2_CORE_PATCH_FILE" -d "$d2_dir"
Expand Down

0 comments on commit eaaf3a6

Please sign in to comment.