Merge pull request #45 from Zoullx/fix-rockstar-move-to-sd

Fix Rockstar Games Launcher move to SD
This commit is contained in:
Roy 2023-06-02 17:38:24 -07:00 committed by GitHub
commit eb58df3b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -982,6 +982,15 @@ if [[ $options == "Move to SD Card" ]]; then
ln -s "$new_dir/IndieGalaLauncher" "$original_dir"
fi
# Check if RockstarGamesLauncher is installed
if [[ -d "$HOME/.local/share/Steam/steamapps/compatdata/RockstarGamesLauncher" ]]; then
# RockstarGamesLauncher is installed
original_dir="$HOME/.local/share/Steam/steamapps/compatdata/RockstarGamesLauncher"
else
# Rockstar Games Launcher is not installed
original_dir=""
fi
# Check if the user selected to move RockstarGamesLauncher
if [[ $move_options == *"RockstarGamesLauncher"* ]] && [[ -n $original_dir ]]; then
# Move the Rockstar Games Launcher directory to the SD card