From b078f5fa13a3050af0cee14c31a1276fbec83dd1 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Thu, 17 Apr 2025 18:11:27 -0400 Subject: [PATCH] Remove delete shaders option; launcher does this now --- lug-helper.sh | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 5c0869e..5846e40 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2308,16 +2308,15 @@ maintenance_menu() { controllers_msg="Open Wine controller configuration" powershell_msg="Install PowerShell into Wine prefix" userdir_msg="Delete my user folder and preserve keybinds/characters" - shaders_msg="Delete my shaders" vidcache_msg="Delete my DXVK cache" dirs_msg="Display Helper and Star Citizen directories" reset_msg="Reset Helper configs" quit_msg="Return to the main menu" # Set the options to be displayed in the menu - menu_options=("$version_msg" "$prefix_msg" "$launcher_msg" "$launchscript_msg" "$config_msg" "$controllers_msg" "$powershell_msg" "$userdir_msg" "$shaders_msg" "$vidcache_msg" "$dirs_msg" "$reset_msg" "$quit_msg") + menu_options=("$version_msg" "$prefix_msg" "$launcher_msg" "$launchscript_msg" "$config_msg" "$controllers_msg" "$powershell_msg" "$userdir_msg" "$vidcache_msg" "$dirs_msg" "$reset_msg" "$quit_msg") # Set the corresponding functions to be called for each of the options - menu_actions=("version_menu" "switch_prefix" "update_launcher" "edit_wine_launch_script" "call_launch_script config" "call_launch_script controllers" "install_powershell" "rm_userdir" "rm_shaders" "rm_dxvkcache" "display_dirs" "reset_helper" "menu_loop_done") + menu_actions=("version_menu" "switch_prefix" "update_launcher" "edit_wine_launch_script" "call_launch_script config" "call_launch_script controllers" "install_powershell" "rm_userdir" "rm_dxvkcache" "display_dirs" "reset_helper" "menu_loop_done") # Calculate the total height the menu should be # menu_option_height = pixels per menu option @@ -2576,32 +2575,6 @@ rm_userdir() { fi } -# Delete the shaders directory -rm_shaders() { - # Get/Set directory paths - getdirs - if [ "$?" -eq 1 ]; then - # User cancelled and wants to return to the main menu, or error - return 0 - fi - - # Loop through all possible shader directories - for appdata_dir in "$shaders_dir"/*; do - # Loop through the shaders subdir array - for shaders_subdir in "${shaders_subdirs[@]}"; do - if [ -d "$appdata_dir/$shaders_subdir" ]; then - # If a shaders directory is found, delete it - if message question "The following directory will be deleted:\n\n$appdata_dir/$shaders_subdir\n\nDo you want to proceed?"; then - debug_print continue "Deleting $appdata_dir/$shaders_subdir..." - rm -r --interactive=never "${appdata_dir:?}/$shaders_subdir" - fi - fi - done - done - - message info "Shader operations completed" -} - # Delete DXVK cache rm_dxvkcache() { # Get/Set directory paths @@ -3241,7 +3214,6 @@ Usage: lug-helper -a, --wine-config Launch winecfg for the game's prefix -b, --wine-controllers Launch Wine controllers configuration -u, --delete-user-folder Delete Star Citizen USER dir, preserve keybinds - -s, --delete-shaders Delete Star Citizen shaders -c, --delete-dxvk-cache Delete Star Citizen dxvk cache file -t, --target [live|ptu|eptu] Target LIVE/PTU/EPTU (default: live) -g, --no-gui Use terminal menus instead of a Zenity GUI @@ -3293,9 +3265,6 @@ Usage: lug-helper --delete-user-folder | -u ) cargs+=("rm_userdir") ;; - --delete-shaders | -s ) - cargs+=("rm_shaders") - ;; --delete-dxvk-cache | -c ) cargs+=("rm_dxvkcache") ;;