Simplify wine install dir options.

Removes the option to manually specify the prefix directory.
This commit is contained in:
the-sane 2025-05-31 11:54:01 -04:00
parent 8685f7f83b
commit 6b6dd5d7fe

View File

@ -2656,13 +2656,7 @@ install_game_wine() {
install_dir="$HOME/Games/star-citizen" install_dir="$HOME/Games/star-citizen"
else else
if [ "$use_zenity" -eq 1 ]; then if [ "$use_zenity" -eq 1 ]; then
if message options "Create my own prefix dir" "Continue" "After clicking Continue, select your Star Citizen install location.\nA new subdirectory named 'star-citizen' will be created in the selected location. This will be your wine prefix.\n\nIf you know what you are doing and want to create your own prefix directory, choose \"Create my own prefix dir\""; then message info "On the next screen, select your Star Citizen install location"
# Default, create the star-citizen directory
install_prefix="star-citizen"
else
# User will create their own prefix directory
install_prefix=""
fi
# Get the install path from the user # Get the install path from the user
while true; do while true; do
@ -2678,15 +2672,11 @@ install_game_wine() {
fi fi
# Add the wine prefix subdirectory to the install path # Add the wine prefix subdirectory to the install path
if [ -n "$install_prefix" ]; then install_dir="$install_dir/star-citizen"
install_dir="$install_dir/$install_prefix"
fi
# Sanity check the chosen directory a bit to catch some possible mistakes # Sanity check the chosen directory a bit to catch some possible mistakes
if [ "$install_dir" = "/" ] || [ "$install_dir" = "$HOME" ] || [ "$install_dir" = "$HOME/Games" ]; then if [ -d "$install_dir" ]; then
if message question "Something seems off! This directory will become your wine prefix. Are you really sure this is what you want?\n\n$install_dir"; then message warning "A directory named \"star-citizen\" already exists!\nPlease choose a different install location.\n\n$install_dir"
break
fi
else else
# All good, break out of the loop and continue # All good, break out of the loop and continue
break break