Compare commits

...

3 Commits

Author SHA1 Message Date
the Sane
662d78a021
Add install to command line arguments 2022-01-01 13:03:09 -05:00
the Sane
d10a84c5fe
Yet -_- 2022-01-01 12:56:13 -05:00
the Sane
35e63f5bd5
Clarify messaging 2022-01-01 12:49:07 -05:00

View File

@ -421,7 +421,7 @@ getdirs() {
# If we don't have the directory paths we need yet, # If we don't have the directory paths we need yet,
# ask the user to provide them # ask the user to provide them
if [ -z "$wine_prefix" ] || [ -z "$game_path" ]; then if [ -z "$wine_prefix" ] || [ -z "$game_path" ]; then
message info "At the next screen, please select your Star Citizen WINE prefix.\nIt will be remembered for future use." message info "Star Citizen must be installed before proceeding.\n\nAt the next screen, please select your Star Citizen WINE prefix.\nIt will be remembered for future use."
if [ "$use_zenity" -eq 1 ]; then if [ "$use_zenity" -eq 1 ]; then
# Using Zenity file selection menus # Using Zenity file selection menus
# Get the wine prefix directory # Get the wine prefix directory
@ -1424,6 +1424,11 @@ preflight_check() {
eac_workaround() { eac_workaround() {
# Get/set directory paths # Get/set directory paths
getdirs getdirs
if [ "$?" -eq 1 ]; then
# User cancelled and wants to return to the main menu
# or there was an error
return 0
fi
# Set the EAC directory path and hosts modification # Set the EAC directory path and hosts modification
eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat" eac_dir="$wine_prefix/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat"
@ -1431,7 +1436,7 @@ eac_workaround() {
# Check if EAC is installed # Check if EAC is installed
if [ ! -d "$eac_dir" ]; then if [ ! -d "$eac_dir" ]; then
message info "Easy Anti-Cheat does not appear to be installed.\nThere is nothing to do!" message info "Easy Anti-Cheat does not appear to be installed yet.\nThere is nothing to do!"
return 1 return 1
fi fi
@ -1587,6 +1592,7 @@ if [ "$#" -gt 0 ]; then
printf "Star Citizen Linux Users Group Helper Script printf "Star Citizen Linux Users Group Helper Script
Usage: lug-helper <options> Usage: lug-helper <options>
-p, --preflight-check Run system optimization checks -p, --preflight-check Run system optimization checks
-i, --install Install Star Citizen
-m, --manage-runners Install or remove Lutris runners -m, --manage-runners Install or remove Lutris runners
-k, --manage-dxvk Install or remove DXVK versions -k, --manage-dxvk Install or remove DXVK versions
-u, --delete-user-folder Delete Star Citizen USER folder, preserving keybinds -u, --delete-user-folder Delete Star Citizen USER folder, preserving keybinds
@ -1603,6 +1609,9 @@ Usage: lug-helper <options>
--preflight-check | -p ) --preflight-check | -p )
cargs+=("preflight_check") cargs+=("preflight_check")
;; ;;
--install | -i )
cargs+=("install_game")
;;
--manage-runners | -m ) --manage-runners | -m )
cargs+=("runner_manage") cargs+=("runner_manage")
;; ;;