mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-07-01 13:30:35 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
26f1377506 | |||
b71f601547 | |||
717a83a512 |
@ -85,7 +85,7 @@ data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
|
|||||||
conf_subdir="starcitizen-lug"
|
conf_subdir="starcitizen-lug"
|
||||||
|
|
||||||
# Helper directory
|
# Helper directory
|
||||||
helper_dir="$(realpath "$0" | xargs dirname)"
|
helper_dir="$(realpath "$0" | xargs -0 dirname)"
|
||||||
|
|
||||||
# Temporary directory
|
# Temporary directory
|
||||||
tmp_dir="$(mktemp -d --suffix=".lughelper")"
|
tmp_dir="$(mktemp -d --suffix=".lughelper")"
|
||||||
@ -169,7 +169,7 @@ lug_wiki="https://github.com/starcitizen-lug/information-howtos/wiki"
|
|||||||
# Github repo and script version info
|
# Github repo and script version info
|
||||||
repo="starcitizen-lug/lug-helper"
|
repo="starcitizen-lug/lug-helper"
|
||||||
releases_url="https://github.com/$repo/releases"
|
releases_url="https://github.com/$repo/releases"
|
||||||
current_version="v1.16"
|
current_version="v1.17"
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -1391,9 +1391,9 @@ eac_workaround() {
|
|||||||
eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
|
eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
|
||||||
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
|
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
|
||||||
|
|
||||||
# Check if EAC is installed
|
# Check if EAC workaround is already applied
|
||||||
if [ ! -d "$eac_dir" ]; then
|
if grep "$eac_hosts" /etc/hosts; then
|
||||||
message info "Easy Anti-Cheat does not appear to be installed yet.\nThere is nothing to do!"
|
message info "The Easy Anti-Cheat workaround has already been applied.\nYou're all set!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1417,8 +1417,11 @@ eac_workaround() {
|
|||||||
sudo sh -c "echo $eac_hosts '#Star Citizen EAC workaround' >> /etc/hosts"
|
sudo sh -c "echo $eac_hosts '#Star Citizen EAC workaround' >> /etc/hosts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug_print continue "Deleting $eac_dir..."
|
# Delete the EAC directory if it exists
|
||||||
rm -r "$eac_dir"
|
if [ -d "$eac_dir" ]; then
|
||||||
|
debug_print continue "Deleting $eac_dir..."
|
||||||
|
rm -r "$eac_dir"
|
||||||
|
fi
|
||||||
|
|
||||||
message info "Easy Anti-Cheat workaround has been deployed!"
|
message info "Easy Anti-Cheat workaround has been deployed!"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user