mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:44:23 +00:00
EAC workaround now baked into GE runners
This commit is contained in:
parent
2ea2c40170
commit
40e5722ed4
@ -2212,27 +2212,7 @@ install_game() {
|
|||||||
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
|
message info "The installation will continue in Lutris"
|
||||||
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"
|
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user