mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-16 07:50:34 +00:00
Compare commits
2 Commits
5d83992d05
...
568f24a15c
Author | SHA1 | Date | |
---|---|---|---|
|
568f24a15c | ||
|
6decb35252 |
@ -2196,7 +2196,28 @@ install_game() {
|
|||||||
# We shouldn't get here
|
# We shouldn't get here
|
||||||
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Prep EAC Workaround
|
||||||
|
eac_hosts="127.0.0.1 modules-cdn.eac-prod.on.epicgames.com"
|
||||||
|
# Configure message variables
|
||||||
|
eac_hosts_formatted="$eac_hosts"
|
||||||
|
if [ "$use_zenity" -eq 1 ]; then
|
||||||
|
eac_hosts_formatted="<i>$eac_hosts_formatted</i>"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Deploy EAC Workaround if needed
|
||||||
|
if grep -q "^$eac_hosts" /etc/hosts; then
|
||||||
message info "The installation will continue in Lutris"
|
message info "The installation will continue in Lutris"
|
||||||
|
elif message question "The installation will continue in Lutris\n\nWould you like to deploy the Easy Anti-Cheat Workaround?\n\nThe following entry will be added to /etc/hosts:\n$eac_hosts_formatted"; then
|
||||||
|
debug_print continue "Editing hosts file..."
|
||||||
|
# Try to modify /etc/hosts as root
|
||||||
|
try_exec "printf '\n$eac_hosts #Star Citizen EAC workaround\n' >> /etc/hosts"
|
||||||
|
if [ "$?" -eq 1 ]; then
|
||||||
|
message error "Authentication failed or there was an error modifying /etc/hosts.\nSee terminal for more information."
|
||||||
|
else
|
||||||
|
message info "Easy Anti-Cheat workaround has been deployed!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2361,6 +2382,7 @@ Usage: lug-helper <options>
|
|||||||
-d, --show-directories Show all Star Citizen and LUG Helper directories
|
-d, --show-directories Show all Star Citizen and LUG Helper directories
|
||||||
-w, --show-wiki Show the LUG Wiki
|
-w, --show-wiki Show the LUG Wiki
|
||||||
-x, --reset-helper Delete saved lug-helper configs
|
-x, --reset-helper Delete saved lug-helper configs
|
||||||
|
-v, --version Display version info and exit
|
||||||
"
|
"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
@ -2426,6 +2448,10 @@ Usage: lug-helper <options>
|
|||||||
--reset-helper | -x )
|
--reset-helper | -x )
|
||||||
cargs+=("reset_helper")
|
cargs+=("reset_helper")
|
||||||
;;
|
;;
|
||||||
|
--version | -v )
|
||||||
|
printf "LUG Helper %s\n" "$current_version"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
* )
|
* )
|
||||||
printf "$0: Invalid option '%s'\n" "$1"
|
printf "$0: Invalid option '%s'\n" "$1"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user